validator

package
v0.0.0-...-5cf9733 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 ErrorResponse

type ErrorResponse struct {
	Error       bool
	Message     string
	FailedField string
	Tag         string
	Value       interface{}
}

type XValidator

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

func New

func New(local string) (*XValidator, error)

New ...

func (*XValidator) Validate

func (v *XValidator) Validate(data interface{}) []ErrorResponse

Validate @Description: 验证 @receiver v @param data @return []ErrorResponse @author cx

Jump to

Keyboard shortcuts

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