Download a zip file in efficient way, and unzip it.
If a URL supports the http header Accept-Ranges, it will be divided into several parts and download it concurrently.

git clone https://github.com/unfor19/golang-parallel-download-with-accept-ranges.git && \
cd golang-parallel-download-with-accept-ranges
go mod download
go build
# output file: ./golang-parallel-download-with-accept-ranges
./golang-parallel-download-with-accept-ranges
./golang-parallel-download-with-accept-ranges -t
./golang-parallel-download-with-accept-ranges -c=7
git clone https://github.com/unfor19/golang-parallel-download-with-accept-ranges.git && \
cd golang-parallel-download-with-accept-ranges
docker build -t ops .
docker run --rm -it ops
pb - show multiple progress bar
go get github.com/cheggaaa/pb
Content type
Image
Digest
Size
13.1 MB
Last updated
over 5 years ago
docker pull unfor19/ops