title: How can I detect a file's encoding?
body: <p>I'm trying figure out the encoding of a file on Windows using Go. Doing some research, I've found many recommendations for Mozilla's <a href="http://www-archive.mozilla.org/projects/intl/chardet.html">Charset Detectors</a> (chardet), but they're hard to compile, and I'm not having any luck.</p>
  
  <p>I've also found libguess, and it seems is widely used in Linux, but I can't make it work in Windows.</p>
  
  <p>What's the best way to go about this? Is there a de-facto standard library to use with Go on Windows?</p>