Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrecompressedFileServer ¶
func PrecompressedFileServer(fs http.FileSystem, dev bool) http.Handler
PrecompressedFileServer serves foo.br / foo.gz if present and accepted. It assumes `r.URL.Path` is already stripped (so it looks like "app.dfh1943hfa.js").
func RegisterStatic ¶
func RegisterStatic(r chi.Router, cfg StaticConfig)
func Version ¶
func Version(version string) http.HandlerFunc
Types ¶
type StaticConfig ¶
type StaticConfig struct {
Dev bool
}
Click to show internal directories.
Click to hide internal directories.