validator

package
v0.0.0-...-73ddb9c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidate

func GetValidate() *v.Validate

GetValidate 获得 validator 单例

func Validate

func Validate(obj interface{}) v.ValidationErrors

Validate 校验 struct

Types

type ParamError

type ParamError struct {
	Field string `json:"field"`
}

Jump to

Keyboard shortcuts

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