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.
zstd
✓ github.com/DataDog/zstd
Compresses and decompresses data using Zstandard.
package main
import (
"fmt"
"github.com/DataDog/zstd"
)
func main() {
compressed, err := zstd.Compress(nil, []byte("Hello, World!"))
if err != nil {
fmt.Println(err)
return
}
decompressed, err := zstd.Decompress(nil, compressed)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(decompressed))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.5.7latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.