Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 785 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 785 Bytes

Targz

Library for packaging/extracting folders in tar.gz archives.

Documentation on godoc.org

Installation

Installing using go get is the easiest.

go get github.com/walle/targz

Usage

The API is really simple, there are only two methods.

  • Compress
  • Extract

Create an archive containing a folder

import "github.com/walle/targz"
...
err := targz.Compress("my_folder", "my_file.tar.gz")

Extract an archive

import "github.com/walle/targz"
...
err := targz.Extract("my_file.tar.gz", "path/to/extract/to")

Contributing

All contributions are welcome! See CONTRIBUTING for more info.

License

Licensed under MIT license. See LICENSE for more information.