validate

package
v0.0.0-...-6d34543 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 Validate

type Validate struct {
	// contains filtered or unexported fields
}

验证实例

func (*Validate) SetTagName

func (v *Validate) SetTagName(name string)

设置校验返回信息

func (*Validate) ValidateStruct

func (v *Validate) ValidateStruct(i interface{}) error

type ValidateRepo

type ValidateRepo interface {
	SetTagName(name string)
	ValidateStruct(i interface{}) error
}

验证服务接口

func NewValidateRepo

func NewValidateRepo() ValidateRepo

Jump to

Keyboard shortcuts

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