validation

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validate

type Validate struct {
	ValidatorValidate *validator.Validate
}

func New

func New() (*Validate, error)

func (*Validate) Validate

func (validate *Validate) Validate(i interface{}) ValidatorErrors

type ValidatorError

type ValidatorError struct {
	validator.FieldError
}

func (ValidatorError) Error

func (validationErr ValidatorError) Error() string

type ValidatorErrors

type ValidatorErrors []ValidatorError

func (ValidatorErrors) Errors

func (validationErrors ValidatorErrors) Errors() []string

Jump to

Keyboard shortcuts

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