This is a library that adds a huge number of mime types for using with mime.TypeByExtension()
package main
import (
"mime"
_ "github.com/mytrile/mime-ex"
)
func main() {
gz_type := mime.TypeByExtension(".gz") //=> "application/gzip"
}
- Author : Dimitar Kostov
- Email : [email protected]
- Website : http://mytrile.github.com
- Twitter : http://twitter.com/mytrile