validation

package
v0.0.0-...-b3accde Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagRE = regexp.MustCompile(`\A[\w][\w\-]+[\w]\z`)

Functions

func ValidateStruct

func ValidateStruct(data any) validationErrors

func ValidateTags

func ValidateTags(tags []string) error

Types

type ErrorResponse

type ErrorResponse struct {
	FailedField string
	Tag         string
	Value       string
}

Jump to

Keyboard shortcuts

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