From d2c369995722ee93b380f80f23cacbb7ac38d2e3 Mon Sep 17 00:00:00 2001 From: "SRK.Lyu" Date: Sat, 31 Jan 2015 20:09:44 +0800 Subject: [PATCH] Update httprouter version and edit readme about the named parameters --- Godeps/Godeps.json | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 905a487f..2d43fc9f 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -4,7 +4,7 @@ "Deps": [ { "ImportPath": "github.com/julienschmidt/httprouter", - "Rev": "90d58bada7e6154006f2728ee09053271154a8f6" + "Rev": "00ce1c6a267162792c367acc43b1681a884e1872" } ] } diff --git a/README.md b/README.md index b49c9b01..f1ac5fb1 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,8 @@ func main() { c.String(200, message) }) - // However, this one will match /user/john and also /user/john/send + // However, this one will match /user/john/ and also /user/john/send + // If no other routers match /user/john, it will redirect to /user/join/ r.GET("/user/:name/*action", func(c *gin.Context) { name := c.Params.ByName("name") action := c.Params.ByName("action")