Skip to content

go-http-utils/compressible

Repository files navigation

compressible

Build Status Coverage Status

MIME compressible checking for Go

Installation

go get -u github.com/go-http-utils/compressible

Documentation

API documentation can be found here: https://godoc.org/github.com/go-http-utils/compressible

Usage

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

Releases

No releases published

Packages

No packages published

Languages