validation

package
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	Tag string
}

CustomError CustomError

func (*CustomError) Error

func (c *CustomError) Error() string

Error Error

type MzValidator

type MzValidator interface {
	New() MzValidator
	GetErrors() []CustomError
	Struct(str interface{}) error
}

MzValidator MzValidator

type ValidatorAdapter

type ValidatorAdapter struct {
	ValidationErrors []validator.FieldError
	// contains filtered or unexported fields
}

ValidatorAdapter ValidatorAdapter

func (ValidatorAdapter) GetErrors

func (v ValidatorAdapter) GetErrors() []CustomError

GetErrors GetErrors

func (ValidatorAdapter) New

func (v ValidatorAdapter) New() MzValidator

New New

func (ValidatorAdapter) Struct

func (v ValidatorAdapter) Struct(str interface{}) error

Struct Struct

Jump to

Keyboard shortcuts

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