./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
}
minithink
慕姐0836278
一凡
相关分类