From cf085e93b7abc53b8ecc78c07210384e0ff8d516 Mon Sep 17 00:00:00 2001 From: Ewy~ Date: Tue, 31 Mar 2026 17:18:35 +0200 Subject: initial commit --- pages/landing.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/landing.go (limited to 'pages/landing.go') diff --git a/pages/landing.go b/pages/landing.go new file mode 100644 index 0000000..d8c4f54 --- /dev/null +++ b/pages/landing.go @@ -0,0 +1,19 @@ +package pages + +import ( + _ "embed" + "html/template" + "net/http" +) + +//go:embed landing.gohtml +var landContent string +var landTmpl = template.Must(template.New("delayed.link").Parse(landContent)) + +func Land(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusOK) + err := landTmpl.Execute(w, nil) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + } +} -- cgit v1.3