Skip to content

Commit

Permalink
docs: redirect to the correct line of code (gin-gonic#2998)
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheng9 authored Dec 26, 2021
1 parent 1538ece commit d062a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ func startPage(c *gin.Context) {
var person Person
// If `GET`, only `Form` binding engine (`query`) used.
// If `POST`, first checks the `content-type` for `JSON` or `XML`, then uses `Form` (`form-data`).
// See more at https://github.com/gin-gonic/gin/blob/master/binding/binding.go#L48
// See more at https://github.com/gin-gonic/gin/blob/master/binding/binding.go#L88
if c.ShouldBind(&person) == nil {
log.Println(person.Name)
log.Println(person.Address)
Expand Down

0 comments on commit d062a6a

Please sign in to comment.