http.Handle 和 http.HandleFunc 的区别?
Go 文档如下 http 包示例:
http.Handle("/foo",fooHandler)http.HandleFunc("/bar",func(w http.ResponseWriter,r *http.Request) fmt.Fprintf(w,"Hello,%q",html.EscapeString(r.URL.Path))})
我在理解 Handle 和 HandleFunc 之间的区别以及为什么需要两个时间有点困难。有些人可以尝试 ...