Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 428 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 428 Bytes

go-xz

A small wrapper around libxz to generate lzma2-compressed data from golang

Installation

go get github.com/danielrh/go-xz

Usage

import "github.com/danielrh/go-xz"

Then use it like a normal writer to make compressed files: w := xz.NewDecompressionWriter(writer) (remember to w.Close() it so that the stream gets flushed)

Then access a compressed stream like a normal reader: xz.NewDecompressionReader(reader)