pair

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValuePair

type KeyValuePair[K, V any] struct {
	// contains filtered or unexported fields
}

func NewKeyValuePair

func NewKeyValuePair[K, V any](key K, value V) KeyValuePair[K, V]

func (KeyValuePair[K, V]) Key

func (kvp KeyValuePair[K, V]) Key() K

func (KeyValuePair[K, V]) SetKey

func (kvp KeyValuePair[K, V]) SetKey(key K)

func (KeyValuePair[K, V]) SetValue

func (kvp KeyValuePair[K, V]) SetValue(value V)

func (KeyValuePair[K, V]) String

func (kvp KeyValuePair[K, V]) String() string

func (KeyValuePair[K, V]) Value

func (kvp KeyValuePair[K, V]) Value() V

type Tuple2

type Tuple2[T1, T2 any] struct {
	Item1 T1
	Item2 T2
}

type Tuple3

type Tuple3[T1, T2, T3 any] struct {
	Item1 T1
	Item2 T2
	Item3 T3
}

type Tuple4

type Tuple4[T1, T2, T3, T4 any] struct {
	Item1 T1
	Item2 T2
	Item3 T3
	Item4 T4
}

type Tuple5

type Tuple5[T1, T2, T3, T4, T5 any] struct {
	Item1 T1
	Item2 T2
	Item3 T3
	Item4 T4
	Item5 T5
}

Jump to

Keyboard shortcuts

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