12 lines
236 B
Go
12 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)
|
|
})
|
|
}
|