http.HandleFunc("/", handlerFunc),命名 handlerFunc的由来

func main() {
    http.HandleFunc("/", handlerFunc) //为啥叫handlerFunc这个名字呢?
    http.ListenAndServe(":3000", nil)
}

代码跟踪,看到:

func http.HandleFunc(pattern string, <font  color="#dd0000">handler func</font>(http.ResponseWriter, *http.Request))
G01
本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!