A FileServer that serves gzipped content.
Usage:
import "github.com/blockninja/fileserver"
base := "/path/to/website/static/files"
http.Handle("/static", http.StripPrefix("/static", fileserver.FileServer(http.Dir(base))))
Usage of http.FileServer can be replaced with fileserver.FileServer. A request for serves .gz instead if its modification time is not before the original file's, or if the original does not exist. Serves the original if the request doesn't support the "gzip" encoding. index.html can also be gzipped as a default for directories (index.html.gz).