{"action":"opened","issue":{"url":"https://api.github.com/repos/gin-gonic/gin/issues/407","labels_url":"https://api.github.com/repos/gin-gonic/gin/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/gin-gonic/gin/issues/407/comments","events_url":"https://api.github.com/repos/gin-gonic/gin/issues/407/events","html_url":"https://github.com/gin-gonic/gin/issues/407","id":101354583,"number":407,"title":"there are errors on example \"query + post form\"","user":{"login":"hjianhao","id":6102007,"avatar_url":"https://avatars.githubusercontent.com/u/6102007?v=3","gravatar_id":"","url":"https://api.github.com/users/hjianhao","html_url":"https://github.com/hjianhao","followers_url":"https://api.github.com/users/hjianhao/followers","following_url":"https://api.github.com/users/hjianhao/following{/other_user}","gists_url":"https://api.github.com/users/hjianhao/gists{/gist_id}","starred_url":"https://api.github.com/users/hjianhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjianhao/subscriptions","organizations_url":"https://api.github.com/users/hjianhao/orgs","repos_url":"https://api.github.com/users/hjianhao/repos","events_url":"https://api.github.com/users/hjianhao/events{/privacy}","received_events_url":"https://api.github.com/users/hjianhao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T07:15:10Z","updated_at":"2015-08-17T07:15:10Z","closed_at":null,"body":"func main() {\r\n    router := gin.Default()\r\n\r\n    router.POST(\"/post\", func(c *gin.Context) {\r\n        id := c.Query(\"id\")\r\n        page := c.DefaultQuery(\"id\", \"0\")\r\n        name := c.PostForm(\"name\")\r\n        message := c.PostForm(\"message\")\r\n\r\n        fmt.Println(\"id: %s; page: %s; name: %s; message: %s\", id, page, name, message)\r\n    })\r\n    router.Run(\":8080\")\r\n}\r\n\r\nfirst :\r\npage := c.DefaultQuery(\"id\", \"0\") should be page := c.DefaultQuery(\"page\", \"0\")\r\n\r\nsecond:\r\nfmt.Println(\"id: %s; page: %s; name: %s; message: %s\", id, page, name, message) shoud be :\r\nfmt.Print(\"id: %s; page: %s; name: %s; message: %s\\n\", id, page, name, message)\r\nthe statement above will output : \r\nid: %s; page: %s; name: %s; message: %s 1234 1 nanu this_is_great"}}