Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringValidator ¶
StringValidator is a function that returns an error if the input is invalid.
func ComposeValidators ¶
func ComposeValidators(validators ...StringValidator) StringValidator
func NotBlankValidator ¶
func NotBlankValidator(message string) StringValidator
func RegexValidator ¶
func RegexValidator(regex *regexp.Regexp, message string) StringValidator
Click to show internal directories.
Click to hide internal directories.