# README
Download - File Download, support parallel
Installation
To install the package, run:
go get github.com/go-zoox/download
Getting Started
func TestDownload(t *testing.T) {
url := "YOUR_FILE_URL"
fileName := "test.mp4"
err := Download(url, &Config{
FilePath: fileName,
})
if err != nil {
t.Error(err)
}
}
Functions
- Parallel
- Progress
License
GoZoox is released under the MIT License.
# Variables
DefaultSegmentSize stands for the default segment size (10 Mb) if the segment size is not set, the default segment size is used.
# Structs
Config represents the download config.
Downloader is the downloader.
FilePart represents a part of a file.
Range represents the range of the file.