A simple parallel downloader package written in go. This fork fixes a file corruption issue and adds an option to set custom headers.
$ cd cmd
$ go get github.com/xiconet/godownload
$ make
$ ./downloader -c 5 -o outputfile http://releases.ubuntu.com/precise/ubuntu-12.04.1-alternate-amd64.iso
File size is 734MB
Downloaded 0.23% of 734MB, at 121KB/s
Import "github/com/xiconet/godownload"
See cmd/main.go
for implementation of downloader
d := download.New()
size, err := d.Init(url, connections, filename)
// Used for blocked wait for full file download:
err = d.Download()
or
// Just returns by starting download. We must call d.Wait() to block wait
// till download is complete.
d.StartDownload()
// Used to gather information about status of on-going download:
d.GetProgress()