validator

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validator = ValidatorClass{}

Functions

This section is empty.

Types

type ValidatorClass

type ValidatorClass struct {
	Validator *validator.Validate
}

func (*ValidatorClass) CheckInject

func (this *ValidatorClass) CheckInject(str string)

func (*ValidatorClass) CheckInjectWithErr

func (this *ValidatorClass) CheckInjectWithErr(str string) error

func (*ValidatorClass) ContainAlphabet

func (this *ValidatorClass) ContainAlphabet(val interface{}, target interface{}) bool

func (*ValidatorClass) ContainNumber

func (this *ValidatorClass) ContainNumber(val interface{}, target interface{}) bool

func (*ValidatorClass) EmptyFun

func (this *ValidatorClass) EmptyFun(fl validator.FieldLevel) bool

func (*ValidatorClass) EndWith

func (this *ValidatorClass) EndWith(val interface{}, target interface{}) bool

func (*ValidatorClass) Init

func (this *ValidatorClass) Init()

func (*ValidatorClass) IsMobile

func (this *ValidatorClass) IsMobile(val interface{}, target interface{}) bool

func (*ValidatorClass) NoSqlInject

func (this *ValidatorClass) NoSqlInject(val interface{}, target interface{}) bool

func (*ValidatorClass) StartWith

func (this *ValidatorClass) StartWith(val interface{}, target interface{}) bool

func (*ValidatorClass) StrGt

func (this *ValidatorClass) StrGt(val interface{}, target interface{}) bool

func (*ValidatorClass) StrGte

func (this *ValidatorClass) StrGte(val interface{}, target interface{}) bool

func (*ValidatorClass) StrLt

func (this *ValidatorClass) StrLt(val interface{}, target interface{}) bool

func (*ValidatorClass) StrLte

func (this *ValidatorClass) StrLte(val interface{}, target interface{}) bool

func (*ValidatorClass) Test

func (this *ValidatorClass) Test(fl validator.FieldLevel) bool

func (*ValidatorClass) Wrap

func (this *ValidatorClass) Wrap(method func(val interface{}, target interface{}) bool) func(fl validator.FieldLevel) bool

Jump to

Keyboard shortcuts

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