https://github.com/gofunky/zipred
Golang library to filter and download files from within an online zip file on the fly 🏃
https://github.com/gofunky/zipred
buffer golang http-client stream zip
Last synced: 5 months ago
JSON representation
Golang library to filter and download files from within an online zip file on the fly 🏃
- Host: GitHub
- URL: https://github.com/gofunky/zipred
- Owner: gofunky
- License: lgpl-3.0
- Created: 2018-08-04T12:55:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:20:58.000Z (over 2 years ago)
- Last Synced: 2024-06-20T16:36:44.214Z (about 2 years ago)
- Topics: buffer, golang, http-client, stream, zip
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zipred
[](https://travis-ci.org/gofunky/zipred)
[](https://godoc.org/github.com/gofunky/zipred)
[](https://goreportcard.com/report/github.com/gofunky/zipred)
[](https://www.codacy.com/app/gofunky/zipred?utm_source=github.com&utm_medium=referral&utm_content=gofunky/zipred&utm_campaign=Badge_Grade)
ZIP file operations can get costly, especially for large files. This library allows you to filter and extract an online zip file on the fly.
In contrast to a conventional zip parser, it has the following benefits:
* There is less latency since data is processed directly from the buffer on the fly.
* The download can be stopped once the metadata or target file has been found. Hence, less data is transferred.
* Irrelevant data is directly discarded without memory allocation.
This library gives you an efficient and idiomatic way for indexing zip files on the web.
For examples, check the corresponding folder.