validator

package
Version: v0.0.0-...-c622313 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultValidator

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

DefaultValidator 验证器

func (*DefaultValidator) Engine

func (v *DefaultValidator) Engine() interface{}

Engine 返回支持`StructValidator`实现的底层验证引擎

func (*DefaultValidator) ValidateStruct

func (v *DefaultValidator) ValidateStruct(obj interface{}) error

ValidateStruct 如果接收到的类型是一个结构体或指向结构体的指针,则执行验证。

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL