Where does the serveHTTP utility come from on supposedly naked func
问题 I have this utility: type Handler struct{} func (h Handler) Mount(router *mux.Router, v PeopleInjection) { router.HandleFunc("/api/v1/people", h.makeGetMany(v)).Methods("GET") } the above calls this: func (h Handler) makeGetMany(v PeopleInjection) http.HandlerFunc { type RespBody struct {} type ReqBody struct { Handle string } return tc.ExtractType( tc.TypeList{ReqBody{},RespBody{}}, func(w http.ResponseWriter, r *http.Request) { // ... }) } and then tc.ExtractType is like so: func