validator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Unlicense Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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