validation

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmail

func ValidateEmail(email string) (bool, error)

func ValidatePhoneNumber

func ValidatePhoneNumber(phoneNumber, region string) bool

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func New

func New() *Validator

func (*Validator) GetValidate

func (v *Validator) GetValidate() *validator.Validate

func (*Validator) Validate

func (v *Validator) Validate(i any) ([]types.FieldError, error)

Jump to

Keyboard shortcuts

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