https://github.com/yields/go-unpack
Tarball unpacking utility for Go
https://github.com/yields/go-unpack
Last synced: 4 months ago
JSON representation
Tarball unpacking utility for Go
- Host: GitHub
- URL: https://github.com/yields/go-unpack
- Owner: yields
- Created: 2014-07-06T20:06:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-06T21:05:01.000Z (about 11 years ago)
- Last Synced: 2025-02-05T16:16:46.371Z (5 months ago)
- Language: Go
- Size: 146 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# go-unpack
Tarball unpacking utility.
## Installation
```
$ go get github.com/visionmedia/go-unpack
```## Example
Example which copies some.tgz to "some/path",
creating the destination directories if required,
stripping 0 components.```go
import . "github.com/visionmedia/go-unpack"
import "compress/gzip"
import "os"func main() {
file, _ := os.Open("some.tgz")
reader, _ := gzip.NewReader(file)
err := UnpackTarball(reader, "some/path", 0)
}
```# License
MIT