Validate

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 6 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 {
	Validate *validator.Validate
	Trans    ut.Translator
}
var CheckVaid *Validate

func New

func New() *Validate

func (*Validate) AddValiDate

func (this *Validate) AddValiDate(name string, checkfunc validator.Func)

func (*Validate) GetValidMsg

func (this *Validate) GetValidMsg(obj interface{}, field string, tagName string, err string) string

func (*Validate) Msg

func (this *Validate) Msg(obj interface{}, errs error) string

Jump to

Keyboard shortcuts

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