该签名是标准http.Handler签名。NotFound显然没有使用该请求:// NotFound replies to the request with an HTTP 404 not found error.func NotFound(w ResponseWriter, r *Request) { Error(w, "404 page not found", StatusNotFound) }但是,通过坚持标准接口,它可以与 http 包的其余部分进行互操作:http.HandleFunc("/favicon.ico", http.NotFound)