Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"
TimeFormat is the time format to use when generating times in HTTP headers. It is like time.RFC1123 but hard-codes GMT as the time zone. The time being formatted must be in UTC for Format to generate the correct format.
For parsing this time format, see ParseTime.
Variables ¶
This section is empty.
Functions ¶
func FileServer ¶
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root. it uses afero.Fs as interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.