validation

package
v0.0.0-...-0bce360 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindJsonTagName

func FindJsonTagName(i interface{}, original string) string

func Validate

func Validate(s interface{}) error

Types

type Error

type Error struct {
	Field string `json:"field"`
	Tag   string `json:"tag"`
	Value string `json:"value"`
	Error string `json:"error"`
}

type Errors

type Errors struct {
	Message string             `json:"message"`
	Errors  map[string][]Error `json:"errors"`
}

func (*Errors) Error

func (e *Errors) Error() string

Jump to

Keyboard shortcuts

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