Update README.md

This commit is contained in:
Alex Cornford 2017-03-24 13:56:39 -04:00 committed by GitHub
parent e2212d40c6
commit c19da25a21

View File

@ -133,7 +133,7 @@ func main() {
func main() {
router := gin.Default()
// This handler will match /user/john but will not match neither /user/ or /user
// This handler will match /user/john but will not match /user/ or /user
router.GET("/user/:name", func(c *gin.Context) {
name := c.Param("name")
c.String(http.StatusOK, "Hello %s", name)