Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PasswordComplexity ¶
func PasswordComplexity(field validator.FieldLevel) bool
PasswordComplexity This Go code defines a function to validate the complexity of a password based on certain criteria such as length, presence of uppercase letters, lowercase letters, digits, and special characters.
func RegexAlpha ¶
func RegexAlpha(field validator.FieldLevel) bool
RegexAlpha This Go code defines a function to validates if a given string only contains alphabetic characters and spaces. It uses a regular expression to check for Unicode letters and marks. If the validation fails, it logs the error and returns false.
func RegisterValidator ¶
func TokenLength ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.