go-tsviewer/features/index/handler.go

13 lines
236 B
Go
Raw Normal View History

2019-01-17 21:09:41 +00:00
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)
})
}