validator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeResults

func MergeResults(errs ...error) error

Types

type Error

type Error struct {
	Fields ErrorFields
}

func (Error) Error

func (e Error) Error() string

type ErrorFields

type ErrorFields map[string]string

func (ErrorFields) String

func (ef ErrorFields) String() string

type Validator

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

func NewValidator

func NewValidator() Validator

func (Validator) Struct

func (v Validator) Struct(val any) error

func (Validator) Var

func (v Validator) Var(val any, key, tag string) error

Jump to

Keyboard shortcuts

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