GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cdhtlr/GoParallelDownload: Golang basic file downloader using Accept-Ranges for parallel downloads to download a file in efficient way with the help of concurrency.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
function/download
function/download
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Run.png
Run.png
 
 
go.mod
go.mod
 
 
main.go
main.go
 
 

Repository files navigation

GoParallelDownload

Golang basic file downloader using Accept-Ranges for parallel downloads to download a file in efficient way with the help of concurrency.

If a URL supports http header - Accept-Ranges, it will be divided into several parts and download it concurrently. Otherwise, the files will still be downloaded but not in parallel

QuickStart

go get -u github.com/cdhtlr/GoParallelDownload

how does it work?

  • Gets head of http response
  • Initializes go routines for partial downloads if range downloads are supported
  • Run them simultaneously until all is Done

Compile command

CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -extldflags=-static" -a -o downloader.exe .

Disclaimer

This program comes with no warranty. You must use this program at your own risk. This program slightly copies the source code from Raviraa Speedtest

Note

  • Using a large number of connections to a single URL can lead to DOS attacks.

Todo

  • Performs memory efficiency without debug.FreeOSMemory()

About

Golang basic file downloader using Accept-Ranges for parallel downloads to download a file in efficient way with the help of concurrency.

Topics

accept-rangeconcurrencycontent-lengthdownloaderfastgolanghigh-performancehigh-speedhttpparallelrange-get

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.