forked from mirror/gin
docs: remove double negative in README.md (#1480)
"not match neither" means that it will match.
This commit is contained in:
parent
6159213462
commit
8aef947f6e
|
@ -238,7 +238,7 @@ func main() {
|
||||||
func main() {
|
func main() {
|
||||||
router := gin.Default()
|
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) {
|
router.GET("/user/:name", func(c *gin.Context) {
|
||||||
name := c.Param("name")
|
name := c.Param("name")
|
||||||
c.String(http.StatusOK, "Hello %s", name)
|
c.String(http.StatusOK, "Hello %s", name)
|
||||||
|
|
Loading…
Reference in New Issue