validator

package
v0.0.0-...-69e7fd1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoValidator

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

func NewEchoValidator

func NewEchoValidator() *EchoValidator

func (*EchoValidator) AddValidationTranslation

func (e *EchoValidator) AddValidationTranslation(tag, msg string, fn validator.Func) error

func (*EchoValidator) Validate

func (e *EchoValidator) Validate(i interface{}) error

type ValidateError

type ValidateError struct {
	Fields map[string]string
}

func NewValidateError

func NewValidateError() *ValidateError

func NewValidateErrorWithMessage

func NewValidateErrorWithMessage(key, message string) *ValidateError

func (*ValidateError) Error

func (e *ValidateError) Error() string

Jump to

Keyboard shortcuts

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