validation

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEmail

func IsValidEmail(email string) bool

func ValidateApiData

func ValidateApiData(s interface{}) error

func ValidatePassword

func ValidatePassword(fl validator.FieldLevel) bool

Types

type StructValidatorResult

type StructValidatorResult []validator.FieldError

func ValidateGenericStruct

func ValidateGenericStruct(s interface{}) StructValidatorResult

func (StructValidatorResult) Error

func (s StructValidatorResult) Error() string

func (StructValidatorResult) HasError

func (s StructValidatorResult) HasError(field string) bool

func (StructValidatorResult) SingleError

func (s StructValidatorResult) SingleError() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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