Documentation ¶
Overview ¶
Package download handles the fetching of remote files.
Index ¶
Constants ¶
View Source
const RFC5322 string = "Mon, 2 Jan 2006 15:04:05 MST"
RFC5322 is a HTTP-date value.
View Source
const UserAgent string = "defacto2 cli"
UserAgent is the value of User-Agent request HEADER that that lets servers identify this application.
Variables ¶
This section is empty.
Functions ¶
func LinkDownload ¶
LinkDownload downloads the link and saves it as the named file.
func LinkDownloadQ ¶
LinkDownloadQ quietly downloads the URL and saves it to the named file. Not used.
func StatusColor ¶
StatusColor colours the HTTP status based on its severity.
Types ¶
Click to show internal directories.
Click to hide internal directories.