https://github.com/flamego/gzip
Package gzip is a middleware that provides gzip compression to responses for Flamego
https://github.com/flamego/gzip
flamego go gzip-compression middleware
Last synced: 4 months ago
JSON representation
Package gzip is a middleware that provides gzip compression to responses for Flamego
- Host: GitHub
- URL: https://github.com/flamego/gzip
- Owner: flamego
- License: mit
- Created: 2021-08-21T17:09:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-03T19:31:47.000Z (10 months ago)
- Last Synced: 2025-08-03T21:21:11.945Z (10 months ago)
- Topics: flamego, go, gzip-compression, middleware
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gzip
[](https://github.com/flamego/gzip/actions?query=workflow%3AGo)
[](https://pkg.go.dev/github.com/flamego/gzip?tab=doc)
Package gzip is a middleware that provides gzip compression to responses for [Flamego](https://github.com/flamego/flamego).
## Installation
```zsh
go get github.com/flamego/gzip
```
## Getting started
```go
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()
}
```
## Getting help
- Read [documentation and examples](https://flamego.dev/middleware/gzip.html).
- Please [file an issue](https://github.com/flamego/flamego/issues) or [start a discussion](https://github.com/flamego/flamego/discussions) on the [flamego/flamego](https://github.com/flamego/flamego) repository.
## License
This project is under the MIT License. See the [LICENSE](LICENSE) file for the full license text.