Documentation
¶
Index ¶
- Variables
- func Date(value string) bool
- func Matches(value string, rx *regexp.Regexp) bool
- func MaxChars(value string, n int) bool
- func MaxInt32(value, n int32) bool
- func MinChars(value string, n int) bool
- func MinInt32(value, n int32) bool
- func NotBlank(value string) bool
- func OneOf(value string, options ...string) bool
- func UUID(value string) bool
- type Evaluator
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailRX = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.