validator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator is struct for validator and translator

func NewValidator

func NewValidator() (val *Validator)

NewValidator creates new validator object

func (*Validator) Struct

func (v *Validator) Struct(req interface{}) error

Struct is validator wrapper for struct

func (*Validator) Var

func (v *Validator) Var(propName string, val interface{}, tag string) error

Var is validator wrapper for variable

Jump to

Keyboard shortcuts

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