Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgao authored Oct 13, 2017
1 parent 649dc79 commit 8b1fb23
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 @@ -86,7 +86,7 @@ err := ValidateJson([]byte(body), &p)
fmt.Println(err)
~~~

Cool! Isn't it?
Cool! Isn't it? See more example in example_test.go

## Note
* int and bool are two special type, because int takes 0 as a default value when doing unmarshal, bool take a false as a default value, so we have no way to know if 0 is a caller specified value or default value, so we use pointer, if it those key is not given, then it will be a nil pointer
Expand Down

0 comments on commit 8b1fb23

Please sign in to comment.