Categorygo.bug.st/downloader
modulepackage
1.2.0
Repository: https://github.com/bugst/go-downloader.git
Documentation: pkg.go.dev

# README

go.bug.st/downloader build status codecov

A simple HTTP/S file downloader for golang.

# Functions

Download returns an asynchronous downloader that will download the specified url in the specified file.
DownloadWithConfig applies an additional configuration to the http client and returns an asynchronous downloader that will download the specified url in the specified file.
GetDefaultConfig returns a copy of the default configuration.
SetDefaultConfig sets the configuration that will be used by the Download function.

# Constants

NoResume will not try to resume a partial download.

# Structs

Config contains the configuration for the downloader.
Downloader is an asynchronous downloader.

# Type aliases

DownloadOptions are optional flags that can be passed to Download function.