pprof icon indicating copy to clipboard operation
pprof copied to clipboard

refactor: use gin.IRouter instead of gin.Engine

Open Laisky opened this issue 1 year ago • 0 comments

I thinks it would be better for developer to use gin.IRouter interface than gin.Engine.

gin.Engine is the root router for server. However, there are situations where only the sub-routes obtained after multiple calls to .Group are passed in the code, that is gin.IRouter. In such cases, it becomes difficult to bind pprof.

Laisky avatar Nov 02 '23 06:11 Laisky