diff options
| author | Ewy~ <ewy0@protonmail.com> | 2026-03-31 17:18:35 +0200 |
|---|---|---|
| committer | Ewy~ <ewy0@protonmail.com> | 2026-03-31 17:18:35 +0200 |
| commit | cf085e93b7abc53b8ecc78c07210384e0ff8d516 (patch) | |
| tree | 270bc83c7e4d1c468bd7fcc61d2d65d6f447eda6 /pages/landing.go | |
initial commit
Diffstat (limited to 'pages/landing.go')
| -rw-r--r-- | pages/landing.go | 19 |
1 files changed, 19 insertions, 0 deletions
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) + } +} |
