./main.go:17:2: cannot use m (type middleWareHandler) as type http.Handler in return argument:middleWareHandler does not implement http.Handler (missing ServeHTTP method)#代码如下type middleWareHandler struct { r *httprouter.Router}func NewMiddleWareHandler(r *httprouter.Router) http.Handler { m := middleWareHandler{} m.r = r return m}
- 3 回答
- 0 关注
- 1554 浏览
添加回答
举报
0/150
提交
取消