validator

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormDecode

func FormDecode(object any, values map[string][]string) error

FormDecode decodes values from a map into the provided object using the form decoder.

func Initialize

func Initialize()

Initialize initializes the global Validator instance and registers custom types and validations.

func RegisterCustomValidation

func RegisterCustomValidation(tag string, fn playValidator.Func)

RegisterCustomValidation registers a custom validation function for the given tag.

func Struct

func Struct(object any) error

Struct performs validation on the provided object.

Types

type Validator

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

Jump to

Keyboard shortcuts

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