validate

package
v0.0.0-...-0985de9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err = new(Error)

Functions

func InitValidate

func InitValidate(v *validator.Validate, validators []Validate, locale string)

func RegisterValidatorFunc

func RegisterValidatorFunc(v *validator.Validate, tag string, msgStr string, fn func(fl validator.FieldLevel) bool)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) String

func (e *Error) String() string

type Validate

type Validate interface {
	Tag() string
	ValidateFn() validator.Func
	Error() string
}

Jump to

Keyboard shortcuts

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