Documentation
¶
Index ¶
- Variables
- func CachingHandler(h http.Handler) http.Handler
- func LoadTemplates(dir fs.FS) (map[string]*template.Template, error)
- func Register(mux *http.ServeMux)
- func RenderPageTemplate(w io.Writer, r *http.Request, tmpl *template.Template, args any) error
- type Article
- type LoggingFunc
- type Nav
- type Section
- type TOC
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("resource not found")
View Source
var Templates map[string]*template.Template
Functions ¶
Types ¶
type LoggingFunc ¶
type LoggingFunc func(http.ResponseWriter, *http.Request) error
func (LoggingFunc) ServeHTTP ¶
func (f LoggingFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.