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.
Decompress XZ data
package main
import (
"bytes"
"fmt"
"io/ioutil"
"github.com/xi2/xz"
)
func main() {
compressed := []byte{...} // XZ compressed data
reader, _ := xz.NewReader(bytes.NewReader(compressed))
decompressed, _ := ioutil.ReadAll(reader)
fmt.Println(string(decompressed))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20171230120015-48954b6210f8latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.