Documentation ¶
Index ¶
- Variables
- func ValidateEmail(value string) error
- func ValidateEmailId(value int64) error
- func ValidateFullName(value string) error
- func ValidatePassword(value string) error
- func ValidateSecretCode(value string) error
- func ValidateString(value string, minLength, maxLength int) error
- func ValidateUsername(value string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStringTooShort = errors.New("string is too short") ErrStringTooLong = errors.New("string is too long") ErrInvalidUsername = errors.New("username can only contain letters, numbers or underscores") ErrInvalidFullName = errors.New("full_name can only contain letters or spaces") ErrInvalidEmail = errors.New("email is invalid") )
Functions ¶
func ValidateEmail ¶
func ValidateEmailId ¶
func ValidateFullName ¶
func ValidatePassword ¶
func ValidateSecretCode ¶
func ValidateString ¶
func ValidateUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.