validatorT

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verify

type Verify[T any] struct {
	// contains filtered or unexported fields
}

func Enter

func Enter[T any](structure T) *Verify[T]

func (*Verify[T]) Translate

func (v *Verify[T]) Translate(err error) string

Translate 检验并返回检验错误信息

func (*Verify[T]) VerifyMap

func (v *Verify[T]) VerifyMap(verifyRuleTag string) error

VerifyMap 验证Map verifyRuleTag:验证规则Tag字符串

func (*Verify[T]) VerifyStruct

func (v *Verify[T]) VerifyStruct() error

VerifyStruct 验证结构体

Jump to

Keyboard shortcuts

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