Skip to content

epatel/go-pinch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Pinch

GoDoc

Retrieve a file from inside a zip archive, over the network!

Pinch makes it possible to download a specific file from within a ZIP archive over HTTP/1.1, using nothing but the Go Standard Library (net/http and compress/flate)

Earlier versions were written in Objective-C, Ruby and Java

STATUS: Working, but in active development :)

Installation

go get -u github.com/peterhellberg/go-pinch

Usage

$ go-pinch http://example/path/to.zip file.json

Or from Go directly:

package main

import (
	"github.com/peterhellberg/go-pinch/pinch"
	"os"
)

func main() {
	file, _ := pinch.Get("http://peterhellberg.github.com/pinch/test.zip", "data.json")

	os.Stdout.Write(file)
}

About

Pinch using Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%