validation

package
v0.0.0-...-04e8982 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidationErrors

func GetValidationErrors(err error) *[]ValidationError

func IranianMobileNumberValidator

func IranianMobileNumberValidator(fld validator.FieldLevel) bool

func PasswordValidator

func PasswordValidator(fld validator.FieldLevel) bool

Types

type ValidationError

type ValidationError struct {
	Property string `json:"property"`
	Tag      string `json:"tag"`
	Value    string `json:"value"`
	Message  string `json:"message"`
}

Jump to

Keyboard shortcuts

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