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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.