validation

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmail

func ValidateEmail(email string) bool

func ValidateNew

func ValidateNew() *validator.Validate

func ValidatePhone

func ValidatePhone(phone string) bool

func ValidateRequest

func ValidateRequest(request interface{}, customValidationFuncs ...ValidationFunc) error

Types

type ValidationFunc

type ValidationFunc struct {
	Name string
	Fn   func(fl validator.FieldLevel) bool
}

Jump to

Keyboard shortcuts

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