How to return a default value from windows/registry with golang
<p>I just want to return a (Default) string value in Windows registry with Golang</p>

<pre><code>k, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE)
if err != nil {
    log.Fatal(err)
}
defer k.Close()

s, _, err := k.GetStringValue("(Default)") // It won't work
// s, _, err := k.GetStringValue("SystemRoot") // This is worked
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Windows system root is %q\n", s)
</code></pre>

<p>I run it in CMD admin mode but there was noting to see</p>