Camilo Aguilar d7281c2166 Update README.md
2015-10-21 22:29:23 -05:00
2014-09-03 18:57:42 -04:00
2015-08-20 22:17:13 -04:00
2014-09-06 14:13:16 -04:00
2014-11-19 12:00:59 -05:00
2014-09-09 10:38:41 -04:00
2015-10-21 22:29:23 -05:00

UnzipIt

![Gitter](https://badges.gitter.im/Join Chat.svg) GoDoc Build Status

This Go library allows you to easily unpack the following files:

  • tar.gz
  • tar.bzip2
  • zip
  • tar

There are not CGO involved nor hard dependencies of any type.

Usage

Unpack a file:

    file, err := os.Open(test.filepath)
    ok(t, err)
    defer file.Close()

    destPath, err := unzipit.Unpack(file, tempDir)

Unpack a stream (such as a http.Response):

    res, err := http.Get(url)
    destPath, err := unzipit.UnpackStream(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%