validations

package
v0.0.0-...-fd201ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 6 Imported by: 0

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 RegisterValidator(conf config.Config) error

func RoleTitle

func RoleTitle(field validator.FieldLevel) bool

func TokenLength

func TokenLength(field validator.FieldLevel, length int8) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL