A simple Go module for decompressing a tar.xz file.
- Linux
- macOS
package main
import (
tarXz "github.com/ansidev/tar-xz"
)
func main() {
err := tarXz.Decompress("archive.tar.xz", "/path/to/output/dir")
if err != nil {
log.Fatal(err)
}
}
Le Minh Tri @ansidev.
This source code is available under the AGPL-3.0 LICENSE.