Skip to content

Commit

Permalink
Explicitly stating that required validates boolean to be non default …
Browse files Browse the repository at this point in the history
…zero value i.e. false
  • Loading branch information
alexongh committed May 11, 2024
1 parent e20b948 commit 043e9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Example #2
This validates that the value is not the data types default zero value.
For numbers ensures value is not zero. For strings ensures value is
not "". For slices, maps, pointers, interfaces, channels and functions
not "". For booleans ensures value is not false. For slices, maps, pointers, interfaces, channels and functions
ensures the value is not nil. For structs ensures value is not the zero value when using WithRequiredStructEnabled.
Usage: required
Expand Down

0 comments on commit 043e9ee

Please sign in to comment.