Skip to content

go-http-utils/compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compress

Build Status Coverage Status

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

import (
  "github.com/go-http-utils/compress"
)
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
  res.Write([]byte("Hello World"))
})

http.ListenAndServe(":8080", compress.Handler(mux))