2

gin框架疑问, 为什么不使用 *RouterGroup

 2 years ago
source link: https://studygolang.com/articles/35638
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

gin框架疑问, 为什么不使用 *RouterGroup

zxcblog · 大约5小时之前 · 36 次点击 · 预计阅读时间不到 1 分钟 · 大约8小时之前 开始浏览    

image.png

我想问的 为什么 RouterGroup 不改为 *RouterGroup 呢?

image.png

在注册路由的时候,调用都是通过 *RouterGroup来调用对应的方法的, 为什么在初始化的时候不直接修改为 *RouterGroup


有疑问加站长微信联系(非本文作者))

280

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:701969077


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK