Gzip
Installation
go get github.com/go-macaron/gzipUsage
package main
import (
"github.com/go-macaron/gzip"
"gopkg.in/macaron.v1"
)
func main() {
m := macaron.Classic()
m.Use(gzip.Gziper())
// Register routers.
m.Run()
}Options
Last updated
Was this helpful?