Registry / utility / zappy
library1.1.0gogounverified

Package zappy implements the zappy block-based compression format, a fork of snappy with improved RLE handling and better compression for sparse data.

go get modernc.org/zappy
INSTALL
IMPORT
SIG · ZAPPY
Z
zappy
utilitygov1.1.0
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.

zappy
modernc.org/zappy

Compresses and decompresses data using the zappy format.

package main import ( "fmt" "modernc.org/zappy" ) func main() { data := []byte("Hello, World!") encoded, err := zappy.Encode(nil, data) if err != nil { panic(err) } decoded, err := zappy.Decode(nil, encoded) if err != nil { panic(err) } fmt.Println(string(decoded)) }
Debug
Known issues
gotchaCGO_ENABLED=1 required for optimal performance; pure Go fallback is slower.
fix
Set CGO_ENABLED=1 when building for better performance.
affects: all
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
Resources
zappy — go get zappy · libregistry