Skip to content
/ targz Public
forked from walle/targz

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

License

Notifications You must be signed in to change notification settings

Bbulatov/targz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%