package index import ( "html/template" "net/http" ) func IndexGUIHandler(t template.Template) http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { t.Lookup("index.html").Execute(w, nil) }) }