Registry / utility / andybalholm-brotli

andybalholm-brotli

JSON →
library1.2.1gogounverified

Package brotli implements the Brotli compression algorithm for Go, providing both compression and decompression.

go get github.com/andybalholm/brotli
INSTALL
IMPORT
SIG · ANDYBALHOLM-BROTLI
A
andybalholm-brotli
utilitygov1.2.1
harness data pending
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.

brotli
github.com/andybalholm/brotli

Compresses a string using Brotli and prints the compressed size.

package main import ( "bytes" "fmt" "github.com/andybalholm/brotli" ) func main() { var buf bytes.Buffer w := brotli.NewWriter(&buf) w.Write([]byte("Hello, World!")) w.Close() fmt.Printf("Compressed size: %d\n", buf.Len()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
andybalholm-brotli — go get andybalholm-brotli · libregistry