How can I read xz files in a go program? When I try to read them using lzma
, I get an error in lzma header
error.
相关问题
- Golang mongodb aggregation
- How to flatten out a nested json structure in go
- how to install private repo using glide golang
- How to convert a string to a byte array which is c
- IntelliJ 2017.1.2 GOLANG debug does not work on br
You have 3 options.
Option three is easier than it sounds. Here is what I would use:
Runnable code here: http://play.golang.org/p/SrgZiKdv9a
I recently created an XZ decompression package. It does not require Cgo. You can find it here:
https://github.com/xi2/xz
A program to decompress stdin to stdout: