Skip to content

Commit

Permalink
Merge branch 'bindings' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 5, 2014
2 parents db00cab + 60b4819 commit cb1cd4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func main() {
var json struct {
Value string `json:"value" binding:"required"`
}
if c.EnsureBody(&json) {

if c.Bind(&json) {
DB[user] = json.Value
c.JSON(200, gin.H{"status": "ok"})
}
Expand Down

0 comments on commit cb1cd4c

Please sign in to comment.