either

package
v0.0.0-...-1f40f5c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: BSD-3-Clause Imports: 1 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[L, R any] struct {
	// contains filtered or unexported fields
}

func Left

func Left[L, R any](value L) Either[L, R]
func Right[L, R any](value R) Either[L, R]

func (Either[L, R]) Format

func (e Either[L, R]) Format(f fmt.State, verb rune)

func (Either[L, R]) IsLeft

func (e Either[L, R]) IsLeft() bool

func (Either[L, R]) IsRight

func (e Either[L, R]) IsRight() bool

func (Either[L, R]) Match

func (e Either[L, R]) Match(onLeft func(L), onRight func(R))

Jump to

Keyboard shortcuts

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