| // Copyright 2010 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| "internal/syscall/windows/registry" |
| osInitMime = initMimeWindows |
| names, err := registry.CLASSES_ROOT.ReadSubKeyNames(-1) |
| for _, name := range names { |
| if len(name) < 2 || name[0] != '.' { // looking for extensions only |
| k, err := registry.OpenKey(registry.CLASSES_ROOT, name, registry.READ) |
| v, _, err := k.GetStringValue("Content Type") |
| setExtensionType(name, v) |
| func initMimeForTests() map[string]string { |
| return map[string]string{ |