oneof

package
v0.0.0-...-888bb8d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unset = iota
	First
	Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Either

type Either[A, B any] struct {
	// contains filtered or unexported fields
}

func (*Either[A, B]) Get1

func (n *Either[A, B]) Get1() A

func (*Either[A, B]) Get2

func (n *Either[A, B]) Get2() B

func (*Either[A, B]) Set1

func (n *Either[A, B]) Set1(na A)

func (*Either[A, B]) Set2

func (n *Either[A, B]) Set2(nb B)

func (*Either[A, B]) Which

func (n *Either[A, B]) Which() int

Jump to

Keyboard shortcuts

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