validationjuice

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package validationjuice provides utility functions for validating struct fields based on their tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNonNilValidator

func NewNonNilValidator() funccup.Validator

NewNonNilValidator creates a new validator that checks if a field is non-nil. The validator is associated with a tag value, and can be used to validate struct fields with that tag value.

func NewNonZeroValidator

func NewNonZeroValidator() funccup.Validator

NewNonZeroValidator creates a new validator that checks if a field is non-zero. The validator is associated with a tag value, and can be used to validate struct fields with that tag value.

func NewValidatorRegistry

func NewValidatorRegistry() interfacecup.ValidatorRegistryInterface

NewValidatorRegistry creates a new validatorRegistry and initializes its validators map. It returns a ValidatorRegistryInterface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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