Documentation
¶
Index ¶
Constants ¶
View Source
const ( NameOrLastnameRegexp = `^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ' -]{2,50}$` PasswordRegexp = `^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@[\]^_!"#$%&'()*+,-./:;{}<>|=~?])[A-Za-z\d@[\]^_!"#$%&'()*+,-./:;{}<>|=~?]{8,}$` )
View Source
const (
EmailRegexp = `^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`
)
Variables ¶
This section is empty.
Functions ¶
func IsNameOrLastname ¶ added in v0.1.0
func IsValidPassword ¶ added in v0.1.0
IsValidPassword validate password with the following criteria
* They must contain both uppercase and lowercase letters.
* They must contain numbers and special signs.
* They must be a minimum of 8 characters.
* Specific list of allowed special characters: @ [ ] ^ _ ! " # $ % & ' ( ) * + , - . / : ; { } < > = | ~ ?
Types ¶
Click to show internal directories.
Click to hide internal directories.