Documentation ¶
Overview ¶
Package download handles the fetching of remote files.
Index ¶
Constants ¶
View Source
const ( // UserAgent is the value of User-Agent request HEADER // that that lets servers identify this application. UserAgent = "defacto2 cli" // RFC5322 is a HTTP-date value. RFC5322 = "Mon, 2 Jan 2006 15:04:05 MST" )
Variables ¶
This section is empty.
Functions ¶
func CheckTime ¶
CheckTime creates a valid time duration for use with http.Client.Timeout. t can be 0 or a number of seconds.
func StatusColor ¶
StatusColor colours the HTTP status based on its severity.
Types ¶
Click to show internal directories.
Click to hide internal directories.