These are chat archives for gin-gonic/gin

22nd
Jun 2015
Dev Chakraborty
@devchakraborty
Jun 22 2015 18:06
@MrSpock I didn't have any issues creating my own struct type with a *gin.Context anonymous field, if that's what you mean
Does anyone know how to do either of these with gin:
1) get one route to call the handler for another, e.g. something like r.GET("/a", middleware, handler); r.GET("/b", "/a")
2) match a regex; for me, i need to match ^\/(?!v3)