validation

package
v0.0.0-...-4122671 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsRequiredMsg = "is required"

Functions

This section is empty.

Types

type FieldError

type FieldError struct {
	Field string `json:"field"`
	Error string `json:"error"`
}

type Result

type Result struct {
	FieldErrors []FieldError
}

func (*Result) AddFieldError

func (result *Result) AddFieldError(field string, error string)

func (Result) Error

func (result Result) Error() string

func (*Result) ToError

func (result *Result) ToError() error

Jump to

Keyboard shortcuts

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