Documentation ¶
Overview ¶
Retrieve a file from inside a zip file, over the network!
Pinch makes it possible to download a specific file from within a ZIP file over HTTP/1.1, using nothing but the Go Standard Library.
(http://golang.org/pkg/net/http/ and http://golang.org/pkg/compress/flate/)
Earlier versions were written in Objective-C and Ruby.
Installation ¶
Just go get it:
go get -u github.com/peterhellberg/go-pinch
Usage ¶
You get a list of files if you only pass a URL:
go-pinch http://example/path/to.zip
In order to pinch one of the files in the ZIP:
go-pinch http://example/path/to.zip file.json > file.json
Click to show internal directories.
Click to hide internal directories.