A Golang demonstration of reading specific entries within a large, remote, .zip
file without downloading the entire file.
Uses:
- Go
- snabb/httpreaderat, a library providing a HTTP
io.ReaderAt
interface. - avvmoto/buf-readerat, a library that buffers
io.ReaderAt.ReadAt
reads. This reduces the number of HTTPPartial
calls made. - a
httptrace
tracer context to know if HTTP persistent connections are being used.
git clone https://github.com/ogri-la/ziptest
cd ziptest
go run .
Similar libraries in this space:
Public domain, no licence required, no attribution necessary, no copyright asserted. Go nuts.