validator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeKey = "code"
)
View Source
const (
	UsernameKey = "username"
)

Variables

This section is empty.

Functions

func New

func New(options ...validator.Option) *validator.Validate

func ValidateCode

func ValidateCode(fl validator.FieldLevel) bool

func ValidatePage

func ValidatePage(sl validator.StructLevel)

func ValidateRedirect

func ValidateRedirect(sl validator.StructLevel)

func ValidateUsername added in v0.0.3

func ValidateUsername(fl validator.FieldLevel) bool

ValidateUsername accepts either a code format (alphanumeric with _ and -) or a valid email address format

Types

This section is empty.

Jump to

Keyboard shortcuts

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