Library for packaging/extracting folders in tar.gz archives.
Installing using go get is the easiest.
go get github.com/walle/targz
The API is really simple, there are only two methods.
- Compress
- Extract
import "github.com/walle/targz"
...
err := targz.Compress("my_folder", "my_file.tar.gz")
import "github.com/walle/targz"
...
err := targz.Extract("my_file.tar.gz", "path/to/extract/to")
All contributions are welcome! See CONTRIBUTING for more info.
Licensed under MIT license. See LICENSE for more information.