validation

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillDefaults

func FillDefaults(obj any) error

func Validate

func Validate(obj any) error

Validate validates the given object using annotations

Types

type Validator

type Validator interface {
	Validate(field string, value any, arg string) error
}

Validator represents something capable of validating a struct field

Jump to

Keyboard shortcuts

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