最近发布的主题
最近发布的文章
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
评论了博文 改造httprouter使其支持中间件
-
评论了博文 改造httprouter使其支持中间件@silsuer ``` router.POST("/api/article/create", business.Authentication(business.CreateArticle)) func CreateArticle(w http.ResponseWriter, r *http.Request, _ httprouter.Params) func Authentication(h httprouter.Handle) httprouter.Handle{} ```
-
评论了博文 改造httprouter使其支持中间件我是使用闭包方式实现的中间件。应用起来就是繁琐了点
-
评论了主题 大家好 golang新手请教问题你可以放在init方法里面 https://play.golang.org/p/g18bsTsNyeE