Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Validator = validator.New(validator.WithRequiredStructEnabled())
Functions ¶
func UnmarshalJSONStruct ¶
UnmarshalJSONStruct takes a byte array containing JSON string and unmarshals it into the provided value pointer and validates the value using the validator package.
func UnmarshalYAMLStruct ¶
UnmarshalYAMLStruct takes a byte array containing YAML string and unmarshals it into the provided value pointer and validates the value using the validator package.
Types ¶
type Dynamic ¶ added in v0.0.4
type Dynamic[V any] struct { V V // contains filtered or unexported fields }
func (Dynamic[V]) MarshalJSON ¶ added in v0.0.4
func (*Dynamic[V]) UnmarshalJSON ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.