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 NewNonNilPointerValidator ¶ added in v1.4.1
NewNonNilPointerValidator returns a validator that checks if a field is a pointer and is not nil.
func NewNonZeroPointerElemValidator ¶ added in v1.4.1
NewNonNilPointerElemValidator returns a validator that checks if a field is a pointer, is not nil, and its underlying value is not zero.
func NewNonZeroValidator ¶
NewNonZeroValidator returns a validator that checks if a field is not a pointer and is not zero.
func NewTimeRFC3339Validator ¶ added in v1.4.4
NewTimeRFC3339Validator returns a validator that checks if a field is a time.Time struct and is in RFC3339 format.
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.