union

package
v0.0.0-...-f630b54 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Union

type Union[T1 any, T2 any] struct {
	Data any
}

func Value

func Value[T1 any, T2 any](value any) Union[T1, T2]

func ValueFromPointer

func ValueFromPointer[T1 any, T2 any](value *any) Union[T1, T2]

func (Union[T1, T2]) Equal

func (u Union[T1, T2]) Equal(other Union[T1, T2]) bool

func (Union[T1, T2]) ExactEqual

func (u Union[T1, T2]) ExactEqual(other Union[T1, T2]) bool

func (Union[T1, T2]) GoString

func (u Union[T1, T2]) GoString() string

func (Union[T1, T2]) String

func (u Union[T1, T2]) String() string

func (Union[T1, T2]) Value

func (u Union[T1, T2]) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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