validation

package
v0.0.0-...-11d88a6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	V          = validator.New()
	Translator ut.Translator
)

Functions

This section is empty.

Types

type ValidationErrors

type ValidationErrors struct {
	Errors      []validationError `json:"errors"`
	TotalErrors int               `json:"totalErrors"`
}

func Validate

func Validate(dl model.DeckList) *ValidationErrors

validate deck list

func (*ValidationErrors) HandleServerResponse

func (e *ValidationErrors) HandleServerResponse(res http.ResponseWriter)

Jump to

Keyboard shortcuts

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