https://github.com/flamego/brotli
Package brotli is a middleware that provides brotli compression to responses for Flamego
https://github.com/flamego/brotli
brotli-compression flamego go middleware
Last synced: 4 months ago
JSON representation
Package brotli is a middleware that provides brotli compression to responses for Flamego
- Host: GitHub
- URL: https://github.com/flamego/brotli
- Owner: flamego
- License: mit
- Created: 2021-08-26T23:56:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-03T19:30:42.000Z (10 months ago)
- Last Synced: 2025-08-03T21:21:00.145Z (10 months ago)
- Topics: brotli-compression, flamego, go, middleware
- Language: Go
- Homepage:
- Size: 79.1 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# brotli
[](https://github.com/flamego/brotli/actions?query=workflow%3AGo)
[](https://pkg.go.dev/github.com/flamego/brotli?tab=doc)
Package brotli is a middleware that provides brotli compression to responses for [Flamego](https://github.com/flamego/flamego).
## Installation
```zsh
go get github.com/flamego/brotli
```
## Getting started
```go
package main
import (
"github.com/flamego/brotli"
"github.com/flamego/flamego"
)
func main() {
f := flamego.Classic()
f.Use(brotli.Brotli())
f.Get("/", func() string {
return "ok"
})
f.Run()
}
```
## Getting help
- Read [documentation and examples](https://flamego.dev/middleware/brotli.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.