validate

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRule

func RegisterRule(tag, message string, fn validator.Func) error

RegisterRule registers a rule and the message the pretty printer renders for it. Rules registered without a translation fall back to the unhelpful "field failed the \"tag\" rule".

func RegisterValidation

func RegisterValidation(tag string, fn validator.Func) error

func Struct

func Struct(target any) error

func Var

func Var(value any, rules string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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