These are chat archives for gin-gonic/gin
Gin is a web framework written in Golang. It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Hey guys, I get a problem here
I want to use the gin for /debug/pprof and /debug/vars routing. I use gin.WrapH(http.DefaultServeMux) as the handler for prefix routing rule.
But in my code, I can not reach /debug/pprof/heap. And there is less guide in document for me.
I wonder if here are some misunderstand in my code
router.GET("/status", Status) rg := router.Group("/debug", gin.WrapH(http.DefaultServeMux)) // here! rg.GET("/pprof", gin.WrapH(http.DefaultServeMux)) rg.GET("/vars", gin.WrapH(http.DefaultServeMux))
So my question is: How should I do the route for a common prefix URL request with one handler