Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidEmail is key of invalid email message InvalidEmail = "email" // InvalidMaxLength is key for too long strings InvalidMaxLength = "length_max" // InvalidMinLength is key for too short strings InvalidMinLength = "length_min" // FieldIsRequired is key for required validation error message FieldIsRequired = "required" )
Variables ¶
This section is empty.
Functions ¶
func EmailValid ¶
func EmailValid(value string, basekey string, mm messages.MessageMap) error
EmailValid add error message if email is invalid
func MaxStringValid ¶
MaxStringValid add error message if string is longer then max
func MinStringValid ¶
MinStringValid add error message if string is shorten then min
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.