validator

package module
v0.0.0-...-abf1d95 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Validator

type Validator = validator.Validate

func New

func New() *Validator

New creates a new validator instance with required struct field validation enabled. WithRequiredStructEnabled ensures the "required" family of tags (e.g., required, required_if) apply to non-pointer struct fields, treating their zero values as invalid.

Jump to

Keyboard shortcuts

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