validate

package
v0.0.0-...-9dac4f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: BSD-2-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitValidate

func InitValidate(locale string) error

func RegisterFieldDoc

func RegisterFieldDoc(fd map[string]string)

RegisterFieldDoc 注册

func RegisterValidate

func RegisterValidate(i IValidate)

func Translate

func Translate(err error) (ret interface{})

Types

type IValidate

type IValidate interface {
	Tag() []string
	Func() validator.Func
	RegisterTranslationsFunc() validator.RegisterTranslationsFunc
	TranslationFunc() validator.TranslationFunc
}

Jump to

Keyboard shortcuts

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