我就是无法让这个NotFoundHandler工作。如果它存在,我想在每个获取请求上提供一个静态文件,否则提供index.html。这是我目前的简化路由器:funcfooHandler()http.Handler{fn:=func(whttp.ResponseWriter,r*http.Request){w.Write([]byte("Foo"))}returnhttp.HandlerFunc(fn)}funcnotFound(whttp.ResponseWriter,r*http.Request){http.ServeFile(w,r,"public/index.html")}f