From 9bd25051cb26328b99b069b8f3e9ba02e218d769 Mon Sep 17 00:00:00 2001 From: Roman Zaynetdinov Date: Thu, 23 May 2019 21:36:28 +0300 Subject: [PATCH] Add small example --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2737e9ad..092e91ff 100644 --- a/README.md +++ b/README.md @@ -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") } ```