MIME compressible checking for Go
go get -u github.com/go-http-utils/compressible
API documentation can be found here: https://godoc.org/github.com/go-http-utils/compressible
import (
_ "github.com/GitbookIO/mimedb/autoload"
"github.com/go-http-utils/compressible"
)
fmt.Println(compressible.Test("text/html"))
// -> true
fmt.Println(compressible.Test("image/jpeg"))
// -> false