Documentation ¶
Index ¶
- Variables
- func MustSub(fsys fs.FS, path string) fs.FS
- func RegisterRoutes(handler *http.ServeMux, assets fs.FS, ...)
- func StaticHandler(filesystem fs.FS, options ...func(*staticHandlerConfig)) http.Handler
- func WithCacheControlMaxAge(maxAge int) func(*staticHandlerConfig)
- func WithPath(path string) func(*staticHandlerConfig)
- func WithSubtree(subtree string) func(*staticHandlerConfig)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // build time (set during build) BuildTime string // set by the build process (so has to be exported), but use `Debug` instead since // it's a boolean DebugFlag string Debug bool = false )
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes( handler *http.ServeMux, assets fs.FS, articleController controller.ArticleController, )
func StaticHandler ¶
func WithCacheControlMaxAge ¶
func WithCacheControlMaxAge(maxAge int) func(*staticHandlerConfig)
func WithSubtree ¶
func WithSubtree(subtree string) func(*staticHandlerConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.