title: Serving gzipped content for Go
body: <p>I'm starting to write server-side applications in Go. I'd like to use the <code>Accept-Encoding</code> request header to determine whether to compress  the response entity using <code>GZIP</code>. I had hoped to find a way to do this directly using the <code>http.Serve</code> or <code>http.ServeFile</code> methods.</p>
  <p>This is quite a general requirement; did I miss something or do I need to roll my own solution?</p>