union

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 0 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[T any, U any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any, U any]() Union[T, U]

func (Union[T, U]) Get

func (u Union[T, U]) Get() (*T, *U)

func (Union[T, U]) GetT

func (u Union[T, U]) GetT() *T

func (Union[T, U]) GetU

func (u Union[T, U]) GetU() *U

func (Union[T, U]) WithT

func (u Union[T, U]) WithT(value T) Union[T, U]

func (Union[T, U]) WithU

func (u Union[T, U]) WithU(value U) Union[T, U]

Jump to

Keyboard shortcuts

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