either

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 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 Either

type Either[T any, U any] struct {
	// contains filtered or unexported fields
}

func Of

func Of[T any, U any](value any) *Either[T, U]

func (*Either[T, U]) GetLeft

func (of *Either[T, U]) GetLeft() (out T, ok bool)

func (*Either[T, U]) GetRight

func (of *Either[T, U]) GetRight() (out U, ok bool)

Jump to

Keyboard shortcuts

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