converter

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeType

func NormalizeType(from reflect.Type) reflect.Type

func UnsupportedConversion

func UnsupportedConversion(from, to reflect.Type) error

Types

type Unified

type Unified struct {
	X     UnifyFn
	Y     UnifyFn
	RType reflect.Type
}

func New

func New(to, from reflect.Type) (*Unified, error)

func NormalizeAndUnify

func NormalizeAndUnify(x, y reflect.Type) (*Unified, error)

func Unify

func Unify(x, y reflect.Type) (*Unified, error)

type UnifyFn

type UnifyFn func(pointer unsafe.Pointer) (unsafe.Pointer, error)

Jump to

Keyboard shortcuts

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