templates/errors.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | package templates import ( g "go.alanpearce.eu/gomponents" . "go.alanpearce.eu/gomponents/html" ) func NotFound(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("404 — nothing like that here.")), ), }) } func ServerError(data PageData) g.Node { return Page(data, []g.Node{ Main( H3(g.Text("500 — something broke!")), ), }) } |