validator

package
v0.0.0-...-532783a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatValidationErrors

func FormatValidationErrors(errors []ValidationError) error

Types

type ValidationError

type ValidationError struct {
	Error       bool
	FailedField string
	Tag         string
	Value       interface{}
}

type XValidator

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

func NewValidator

func NewValidator() *XValidator

func (*XValidator) Validate

func (v *XValidator) Validate(data interface{}) []ValidationError

Jump to

Keyboard shortcuts

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