typeutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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