Documentation
¶
Overview ¶
Package typeutil is a collection of type handling utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToWithJSONSchema ¶
func ConvertToWithJSONSchema[From, To any](v From, resolvedSchema *jsonschema.Resolved) (To, error)
ConvertToWithJSONSchema converts the given value to another type using json marshal/unmarshal. If non-nil resolvedSchema is provided, validation against the resolvedSchema will run during the conversion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.