Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 790 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 790 Bytes

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