package pages import ( _ "embed" "html/template" "net/http" ) //go:embed landing.gohtml var landContent string func Land(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) err := tmpl.ExecuteTemplate(w, "land", nil) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } } func init() { template.Must(tmpl.New("land").Parse(landContent)) }