Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
Download can download a file from the network.
func New ¶
func New(url, dir string, hostnameVerification utils.SSLHostnameVerification) *Download
New returns a new Download instance downloading from the given URL to the given directory. If dir is empty, it defaults to os.TempDir(). If disableSSLHostnameVerification is true then a non- validating http client will be used.
Click to show internal directories.
Click to hide internal directories.