Add small example

This commit is contained in:
Roman Zaynetdinov 2019-05-23 21:36:28 +03:00
parent 404ceeaa92
commit 9bd25051cb

View File

@ -252,6 +252,11 @@ func main() {
c.String(http.StatusOK, message)
})
// For each matched request Context will hold the route definition
router.POST("/user/:name/*action", func(c *gin.Context) {
c.FullPath() == "/user/:name/*action" // true
})
router.Run(":8080")
}
```