validation

package
v0.0.0-...-d23828c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 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 NewValidatorAdapter

func NewValidatorAdapter() *ValidatorAdapter

NewValidatorAdapter NewValidatorAdapter

func (ValidatorAdapter) GetErrors

func (v ValidatorAdapter) GetErrors() []CustomError

GetErrors GetErrors

func (ValidatorAdapter) New

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