Documentation
¶
Overview ¶
Package view provides the user interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Favicon faviconHandler
Favicon serves a favicon.ico.
View Source
var Static = staticHandler{ "fonts/GoMedium-Italic.ttf": gomediumitalic.TTF, "fonts/Go-Italic.ttf": goitalic.TTF, "fonts/Go-Bold.ttf": gobold.TTF, "fonts/GoMedium.ttf": gomedium.TTF, "fonts/Go-BoldItalic.ttf": gobolditalic.TTF, "fonts/GoRegular.ttf": goregular.TTF, "fonts/GoMono-Bold.ttf": gomonobold.TTF, "fonts/GoMono.ttf": gomono.TTF, "fonts/GoMono-Italic.ttf": gomonoitalic.TTF, "fonts/GoMono-BoldItalic.ttf": gomonobolditalic.TTF, }
Static serves "static resources".
Functions ¶
func Browse ¶
func Browse(w http.ResponseWriter, base string, dir []DirectoryEntry, params *Params)
Browse writes a filesystem browser to the response writer.
Types ¶
type DirectoryEntry ¶
DirectoryEntry represents a file or directory in a filesystem.
Click to show internal directories.
Click to hide internal directories.