Documentation ¶
Index ¶
- Constants
- Variables
- func DebugOn() bool
- func DevMode() bool
- func ErrorHandler(w http.ResponseWriter, r *http.Request, status int)
- func NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func ParseTmplWithFuncs(path string) *template.Template
- func ProdMode() bool
- type HX_Headers
- type JoinFormData
Constants ¶
View Source
const (
BaseTmplPath = "templates/base.html"
)
Variables ¶
View Source
var IndexTmpl = tmplParseWithBase("templates/index.html")
View Source
var JoinFormTmpl = IndexTmpl.Lookup("join-form")
Template for joining a session/lobby
View Source
var NotFoundTmpl = tmplParseWithBase("templates/not-found.html")
Functions ¶
func DebugOn ¶
func DebugOn() bool
DebugOn returns true if the DEBUG environment variable is set to true or 1.
func ErrorHandler ¶
func ErrorHandler(w http.ResponseWriter, r *http.Request, status int)
ErrorHandler handles HTTP errors based on the status code.
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request)
func ParseTmplWithFuncs ¶
Types ¶
type HX_Headers ¶
type JoinFormData ¶
type JoinFormData struct {
GamePinError string
}
Click to show internal directories.
Click to hide internal directories.