Documentation ¶
Index ¶
- Variables
- func Favicon(w http.ResponseWriter, r *http.Request)
- func Health(w http.ResponseWriter, r *http.Request)
- func Home(w http.ResponseWriter, r *http.Request)
- func NewFileSystem(inDevelopment bool, tplDirPath, staticDirPath string) (*fileSystem, error)
- func Results(w http.ResponseWriter, r *http.Request)
- func Serve(addr, port string)
- func SetupFS() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WebMaxHeaderBytes is the largest number of header bytes accepted by // the webserver WebMaxHeaderBytes int = 1 << 17 // ~125k // ServerAddress is the default Server network address ServerAddress string = "127.0.0.1" // ServerPort is the default Server network port ServerPort string = "8000" // BaseURL is the base url for redirects, etc. BaseURL string = "" )
View Source
var (
DirFS *fileSystem
)
development flags and static and template directory locations
View Source
var StaticFS embed.FS
Functions ¶
func Health ¶
func Health(w http.ResponseWriter, r *http.Request)
HealthCheck shows if the service is up
func NewFileSystem ¶
NewFileSystem returns a new fileSystem
func Results ¶
func Results(w http.ResponseWriter, r *http.Request)
Results shows the results of a "search" form submission in an htmx partial
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.