validator

package
v0.0.0-...-d140a6e Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Message = map[string]string{
	"exist":  "不存在",
	"unique": "已存在",
}

Functions

func Exist

func Exist(fieldLevel validator.FieldLevel) bool

Exist 校验数据是否存在*/

func Register

func Register() (err error)

func Unique

func Unique(fieldLevel validator.FieldLevel) bool

Unique 校验数据是否唯一 */

Types

This section is empty.

Jump to

Keyboard shortcuts

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