func rootHandler(h http.Handler) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.URL.Path == "/" {
			r.URL.Path = rootTemplatePath
		}
		h.ServeHTTP(w, r)
	}
}
// rootHandler maps requests for / to /index.html.
rootHandler maps requests for / to /index.html.
// rootHandler maps requests for / to / index . html .
func rootHandler(h http.Handler) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		if r.URL.Path == "/" {
			r.URL.Path = rootTemplatePath
		}
		h.ServeHTTP(w, r)
	}
}
func rootHandler ( h http . Handler ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { if r . URL . Path == " " { r . URL . Path = rootTemplatePath } h . ServeHTTP ( w , r ) } }
rootHandler maps requests for / to /index.html.
rootHandler maps requests for / to / index . html .