ParallelDownload
Golang HTTP Downloader using Ranges for parallel downloads.
QuickStart
go get -u github.com/Doraemonkeys/ParallelDownload
package main
import (
"fmt"
pd "github.com/Doraemonkeys/ParallelDownload"
)
func main() {
var worker int64 = 5
err := pd.ParallelDownload("https://XXX/XXX.XX", "", "", worker)
if err != nil {
fmt.Println("download failed:", err)
return
}
fmt.Println("download success")
}