title: Detect windows version in Go
body: <p>Is there anyway to detect if the host operating system is XP, Vista, 7, 8, or 10?
  <code>runtime.GOOS</code> just returns "windows".</p>
  
  <p>The reason for this is because I'm trying to manipulate files in the startup folder.</p>
  
  <p>On windows vista, 7, 8, 10 it's located at: </p>
  
  <p><code>%appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup</code></p>
  
  <p>On windows XP it's located at:</p>
  
  <p><code>Documents and Settings\%username%\Start Menu\Programs\Startup</code></p>