Documentation
¶
Overview ¶
Bool Validators
Index ¶
Constants ¶
View Source
const ( Type = "bool" MandatoryErrorFormat = "Needs to be ticked." )
Variables ¶
This section is empty.
Functions ¶
func ValidateFromString ¶
func ValidateFromString(src string, rules ...ValidationRule) (bool, error)
Types ¶
type ValidationRule ¶
func TrueIfMatches ¶
func TrueIfMatches(match string) ValidationRule
If the src matches, set value to true.
Click to show internal directories.
Click to hide internal directories.