https://github.com/go-http-utils/compress
:fist:Compress middleware for Go
https://github.com/go-http-utils/compress
Last synced: 5 months ago
JSON representation
:fist:Compress middleware for Go
- Host: GitHub
- URL: https://github.com/go-http-utils/compress
- Owner: go-http-utils
- License: mit
- Created: 2016-11-25T13:01:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-26T11:41:05.000Z (over 9 years ago)
- Last Synced: 2025-08-15T13:57:33.882Z (10 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-http-utils/compress
- Size: 4.88 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compress
[](https://travis-ci.org/go-http-utils/compress)
[](https://coveralls.io/github/go-http-utils/compress?branch=master)
Compress middleware for Go.
## Installation
```
go get -u github.com/go-http-utils/compress
```
## Documentation
API documentation can be found here: https://godoc.org/github.com/go-http-utils/compress
## Usage
```go
import (
"github.com/go-http-utils/compress"
)
```
```go
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
})
http.ListenAndServe(":8080", compress.Handler(mux))
```