2022-10-04 11:54:58 -04:00
2017-07-04 14:11:38 -04:00
2017-03-23 07:10:11 -05:00
2022-10-04 11:54:58 -04:00
2021-03-16 14:34:26 -04:00
2014-09-09 10:38:41 -04:00
2022-10-04 11:48:22 -04:00
2022-10-04 11:41:28 -04:00
2022-10-04 11:48:52 -04:00

UnpackIt

GoDoc Build Status

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:

    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)
Description
Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.
Readme MPL-2.0 3.3 MiB
Languages
Go 100%