Unpackit Save

Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.

Project README

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)
Open Source Agenda is not affiliated with "Unpackit" Project. README Source: c4milo/unpackit
Stars
77
Open Issues
2
Last Commit
1 year ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating