在这里遇到了以下功能。我注意到最后一个参数用_. 这种模式的意图是什么?
func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
fmt.Fprint(w, "Welcome!\n")
}
catspeake
BIG阳
手掌心
相关分类