validate

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddValidation

func AddValidation(name string, f validator.ValidationFunc) error

func Valid

func Valid(v interface{}, tags string) error

Types

type Validator

type Validator struct {
	Errs error
}

func Validate

func Validate(v interface{}) Validator

func (*Validator) Errors

func (dv *Validator) Errors() error

func (*Validator) HasErrors

func (dv *Validator) HasErrors() bool

func (*Validator) ResultError

func (dv *Validator) ResultError() *service.ResultError

Jump to

Keyboard shortcuts

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