From dba1781814253c1b16519a65a567f17f94fb8feb Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Mon, 17 Aug 2015 12:27:38 +0200 Subject: [PATCH] Correct an error in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e83952d6..a5d4591b 100644 --- a/README.md +++ b/README.md @@ -191,18 +191,18 @@ func main() { router.POST("/post", func(c *gin.Context) { id := c.Query("id") - page := c.DefaultQuery("id", "0") + page := c.DefaultQuery("page", "0") name := c.PostForm("name") message := c.PostForm("message") - fmt.Println("id: %s; page: %s; name: %s; message: %s", id, page, name, message) + fmt.Print("id: %s; page: %s; name: %s; message: %s", id, page, name, message) }) router.Run(":8080") } ``` ``` -id: 1234; page: 0; name: manu; message: this_is_great +id: 1234; page: 1; name: manu; message: this_is_great ```