No Description

default.go 348B

    package handlers import ( "html/template" "net/http" ) var ( templateLoop = template.Must(template.ParseFiles( "html/loop.html", "html/default.html", )) ) func DefaultHandler(w http.ResponseWriter, r *http.Request) { if err := templateLoop.Execute(w, nil); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } }