meta

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(w http.ResponseWriter, _ *http.Request)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL