Versions in this module Expand all Collapse all v0 v0.1.0 Aug 26, 2024 Changes in this version + func JsonErrorHandler(err string, code int) http.Handler + func Observability() http.Handler + func StaticInfo(inf map[string]interface{}) (http.Handler, error) + func StatusErr(status int) http.Handler + func TemplateWithRequest(inTmpl string, data func(r *http.Request) map[string]interface{}) func(w http.ResponseWriter, r *http.Request) + type HttpErr struct + Code int + Error string + type Info struct + BuildTime string + Commit string + Version string + type Link struct + Child []Link + Text string + Url string + type SimpleText struct + Links []Link + Text string + func (h SimpleText) ServeHTTP(w http.ResponseWriter, r *http.Request) + type SpaHandler struct + func NewSpaHAndler(inputFs fs.FS, fsSubDir, pathPrefix string) (SpaHandler, error) + func (h SpaHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)