question: how bind url parameter like /view/:id
Closed this issue · 1 comments
tablecell commented
like gin
r.GET("/user/:name", func(c *gin.Context) {
josephspurrier commented
Like this: https://github.com/josephspurrier/gowebapp/blob/master/vendor/app/route/route.go#L101
The application uses this router: https://github.com/julienschmidt/httprouter#named-parameters