Documentation ¶
Index ¶
- func AddDefaultDoc()
- func AddPage(name string, content string, static http.FileSystem)
- func AddTemplateFuncs(page string, tmpl *template.Template) *template.Template
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func PageHandler(w http.ResponseWriter, r *http.Request) (tmpl web.TemplateData, err error)
- func RegisterPlugin()
- func StaticHandler(w http.ResponseWriter, r *http.Request)
- type Page
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultDoc ¶
func AddDefaultDoc()
func AddTemplateFuncs ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
func PageHandler ¶
func PageHandler(w http.ResponseWriter, r *http.Request) (tmpl web.TemplateData, err error)
func RegisterPlugin ¶
func RegisterPlugin()
func StaticHandler ¶
func StaticHandler(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.