Add documentation.

pull/421/head
Andrei Avram 6 years ago
parent 6b29637aaa
commit faaace938d
  1. 8
      doc.go

@ -245,6 +245,14 @@ ensures the value is not nil.
Usage: required Usage: required
NotBlank
This validates that the value is not blank or with length zero.
For strings ensures they do not contain only spaces. For channels, maps, slices and arrays
ensures they don't have zero length. For others, the "required" validation is used.
Usage: notblank
Is Default Is Default
This validates that the value is the default value and is almost the This validates that the value is the default value and is almost the

Loading…
Cancel
Save