validate

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Field

func Field(i interface{}, tag string) error

func Struct

func Struct(i interface{}) error

func TagName

func TagName() string

Types

type Interface

type Interface interface {
	TagName() string
	Struct(i interface{}) error
	Field(i interface{}, tag string) error
}
var Validator Interface = &Validate{}

type Validate

type Validate struct{}

func (Validate) Field

func (d Validate) Field(i interface{}, tag string) error

func (Validate) Struct

func (d Validate) Struct(i interface{}) error

func (Validate) TagName

func (d Validate) TagName() string

Jump to

Keyboard shortcuts

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