Package gzip is a middleware that provides gzip compression to responses for Flamego.
The minimum requirement of Go is 1.18.
go get github.com/flamego/gzip
package main
import (
"github.com/flamego/flamego"
"github.com/flamego/gzip"
)
func main() {
f := flamego.Classic()
f.Use(gzip.Gzip())
f.Get("/", func() string {
return "ok"
})
f.Run()
}
- Read documentation and examples.
- Please file an issue or start a discussion on the flamego/flamego repository.
This project is under the MIT License. See the LICENSE file for the full license text.