Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Email = Format(regexp.MustCompile(`^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`))
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator func(k string) ValidatorFunc
type ValidatorFunc ¶
type ValidatorFunc func(v ...any) errors.ValidationError
func Required ¶
func Required(k string) ValidatorFunc
Click to show internal directories.
Click to hide internal directories.