Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxNormalNameLength = 300 MinNameLen = 2 MinPhoneLen = 9 EmailRegex = regexp.MustCompile(`[A-Za-z0-9\._%+\-]+@[A-Za-z0-9\.\-]+\.[A-Za-z]{2,}`) PhoneRegex = regexp.MustCompile(`^\+?\d+$`) CreatedTableName = "created_at" PasswordTableName = "passowrd" PhoneTableName = "phone" )
Functions ¶
func Created_at ¶
return a field `created_at`. Configure name with CreatedTableName
func Email ¶
return a field named `email`. Configure name with `EmailTableName` and Regex with `EmailRegex`
func Passowrd ¶
return a field `password`. Configure name with `CreatedTableName` and Regex with PassRegex
func Phone ¶
return a field named `phone`. Configure name with `PhoneTableName` and Regex with `PhoneRegex`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.