eddycjy / go-gin-example

An example of gin
MIT License
6.84k stars 1.59k forks source link

封装自己的的APPEngine,避免重复写 appG := app.Gin{C: c} #123

Open AnsonCode opened 3 years ago

AnsonCode commented 3 years ago

大佬,我看每个controller中都要写一遍 appG := app.Gin{C: c}。可否改造下router,自动将 appG := app.Gin{C: c}注册进去,这样写controller时用app.Gin代替gin.Context,写起来会好很多。