validator

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetZhTranslator

func GetZhTranslator() ut.Translator

Types

type Validator

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

Validator 自定义验证器

func (*Validator) Engine

func (v *Validator) Engine() interface{}

Engine 获取一个实例

func (*Validator) ValidateStruct

func (v *Validator) ValidateStruct(obj interface{}) error

ValidateStruct 验证

Jump to

Keyboard shortcuts

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