Registry / utility / krolaw-zipstream

krolaw-zipstream

JSON →
library0.0.0-20180621105154-0a2661891f94gogounverified

Package zipstream provides support for reading ZIP archives through an io.Reader.

go get github.com/krolaw/zipstream
INSTALL
IMPORT
SIG · KROLAW-ZIPSTREAM
K
krolaw-zipstream
utilitygov0.0.0-20180621105154-0a2661891f94
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

zipstream
github.com/krolaw/zipstream

Reads a ZIP archive stream and extracts files to stdout.

package main import ( "io" "os" "github.com/krolaw/zipstream" ) func main() { f, _ := os.Open("archive.zip") defer f.Close() reader := zipstream.NewReader(f) for { _, err := reader.Next() if err == io.EOF { break } io.Copy(os.Stdout, reader) } }
Debug
Known issues
gotchaZip64 archives are not supported.
fix
Ensure archives are in standard ZIP format.
affects: all
Upgrade
Version history
0.0.0-20180621105154-0a2661891f94latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
krolaw-zipstream — go get krolaw-zipstream · libregistry