validate

package
v1.3.33 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagNameFunc

func TagNameFunc(fld reflect.StructField) string

TagNameFunc returns the tag name for the provided field.

Types

type Errors

Errors is a map of field names to error messages.

func (Errors) Field

func (e Errors) Field(name string) error

Field returns the error message for the provided field.

func (Errors) HasError

func (e Errors) HasError(name string) bool

HasError returns true if the field has an error.

Jump to

Keyboard shortcuts

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