validator

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	V *validator.Validate

	ZH ut.Translator
	EN ut.Translator
)

Functions

This section is empty.

Types

type Errors

type Errors []error

func ToErrors

func ToErrors(err error, ts ...ut.Translator) Errors

func (Errors) First

func (es Errors) First() error

func (Errors) String

func (es Errors) String() string

type FieldError

type FieldError = validator.FieldError

type InvalidValidationError

type InvalidValidationError = validator.InvalidValidationError

type ValidationErrors

type ValidationErrors = validator.ValidationErrors

Jump to

Keyboard shortcuts

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