forked from Cliffbreak/tsviewer
13 lines
236 B
Go
13 lines
236 B
Go
|
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)
|
||
|
})
|
||
|
}
|