Unpackit
Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.
This Go library allows you to easily unpack the following files using magic numbers: The project is written primarily in Go, distributed under the Mozilla Public License 2.0 license, first published in 2014. Key topics include: bzip2, decompression-library, go, golang, gzip.
UnpackIt
This Go library allows you to easily unpack the following files using magic numbers:
- tar.gz
- tar.bzip2
- tar.xz
- zip
- tar
Usage
Unpack a file:
gofile, _ := os.Open(test.filepath) err := unpackit.Unpack(file, tempDir)
Unpack a stream (such as a http.Response):
gores, err := http.Get(url) err := unpackit.Unpack(res.Body, tempDir)
Contributors
Showing top 5 contributors by commit count.
This article is auto-generated from c4milo/unpackit via the GitHub API.Last fetched: 6/25/2026
