Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get downloads a url and returns the body Timeout is 10 seconds Will only write to disk if http status code is 2XX
func IfNeeded ¶
IfNeeded takes the same values as Download plus a hash as a string It will check if the file already exists, by comparing the hash If the hash does not match, it will attempt to download the file Once downloaded it will attempt to verify the hash again
func SetConfig ¶
func SetConfig(cfg config.Configuration)
SetConfig accepts a configuration struct that all functions in the `download` package will use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.