modelconv

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAny

func ConvertAny[T any, U any](source T) (U, error)

ConvertAny converts any type T to any type U using JSON marshaling/unmarshaling

func ConvertWithValidation

func ConvertWithValidation[T any, U any](source T) (U, error)

ConvertWithValidation combines type validation and conversion

func ValidateTypeCompatibility

func ValidateTypeCompatibility[T any, U any]() error

ValidateTypeCompatibility checks if two types are compatible for conversion

Types

This section is empty.

Jump to

Keyboard shortcuts

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