kavea/src/web.go

17 lines
268 B
Go
Raw Normal View History

2021-09-19 18:40:50 -04:00
package main
import (
"html/template"
"net/http"
)
func GetHome(w http.ResponseWriter, r *http.Request) {
t, err := template.ParseFS(templatesHTML, "templates/index.html.tmpl")
if !checkWebError(w, err) {
return
}
err = t.Execute(w, nil)
checkError(err)
}