title: Obtain user's home directory
body: <p>Is the following the best way of obtaining the running user's home directory? Or is there a specific function that I've ovelooked?</p>
  
  <pre><code>os.Getenv("HOME")
  </code></pre>
  
  <p>If the above is correct, does anyone happen to know whether this approach is guaranteed to work on non-Linux platforms, e.g. Windows?</p>