valid

package
v0.0.0-...-58fd0e2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParams = errors.New("参数错误")
)

Functions

func GetErrorMsg

func GetErrorMsg(request any, err error) error

GetErrorMsg 获取错误信息

Types

type Validator

type Validator interface {
	GetMessages() ValidatorMessages
}

type ValidatorMessages

type ValidatorMessages map[string]string

Jump to

Keyboard shortcuts

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