validator

package
v0.0.0-...-de71651 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseNullable

func ParseNullable(field reflect.Value) interface{}

ParseNullable implements validator.CustomTypeFunc

func Validate

func Validate(i any) error

Export shortcut to get the singleton validator instance

Types

type CustomValidator

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

func New

func New() (*CustomValidator, error)

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type Nullable

type Nullable interface {
	driver.Valuer
}

Jump to

Keyboard shortcuts

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