Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomPasswordValidator ¶
func CustomPasswordValidator(fl validator.FieldLevel) bool
Check if the password is valid
func CustomUsernameValidator ¶
func CustomUsernameValidator(fl validator.FieldLevel) bool
Check if the username is valid
Types ¶
type URLValidator ¶
type URLValidator struct {
// contains filtered or unexported fields
}
URLValidator validates URLs
func NewValidator ¶
func NewValidator() *URLValidator
NewValidator creates a new URLValidator instance
func (*URLValidator) Validate ¶
func (uv *URLValidator) Validate(i any) error
Validate validates the input using the URLValidator This is a implementation of the Validator interface
Click to show internal directories.
Click to hide internal directories.