GeezerVison is showing github.com — GitHub - c4milo/unpackit: Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation

This Go library allows you to easily unpack the following files using magic numbers:
- tar.gz
- tar.bzip2
- tar.xz
- zip
- tar
Unpack a file:
file, _ := os.Open(test.filepath)
err := unpackit.Unpack(file, tempDir)
Unpack a stream (such as a http.Response):
res, err := http.Get(url)
err := unpackit.Unpack(res.Body, tempDir)
About
Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.
Topics
Resources
Contributing
Stars
83 stars
Watchers
8 watching
Forks