https://github.com/go-http-utils/compressible
:rice_cracker:MIME compressible checking for Go
https://github.com/go-http-utils/compressible
Last synced: 5 months ago
JSON representation
:rice_cracker:MIME compressible checking for Go
- Host: GitHub
- URL: https://github.com/go-http-utils/compressible
- Owner: go-http-utils
- License: mit
- Created: 2016-11-20T11:35:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T09:18:51.000Z (over 9 years ago)
- Last Synced: 2025-08-15T13:57:30.841Z (10 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-http-utils/compressible
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compressible
[](https://travis-ci.org/go-http-utils/compressible)
[](https://coveralls.io/github/go-http-utils/compressible?branch=master)
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
```go
import (
_ "github.com/GitbookIO/mimedb/autoload"
"github.com/go-http-utils/compressible"
)
```
```go
fmt.Println(compressible.Test("text/html"))
// -> true
fmt.Println(compressible.Test("image/jpeg"))
// -> false
```