Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gzip
✓ github.com/gin-contrib/gzip
Add gzip compression to a Gin router.
package main
import (
"github.com/gin-contrib/gzip"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.Use(gzip.Gzip(gzip.DefaultCompression))
r.GET("/", func(c *gin.Context) {
c.String(200, "Hello")
})
r.Run()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.2.6latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.