collections

package
v0.0.0-...-f6ab580 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentMap

type ConcurrentMap[T Ordered, E any] struct {
	// contains filtered or unexported fields
}

func NewConcurrentMap

func NewConcurrentMap[T Ordered, E any]() *ConcurrentMap[T, E]

func (*ConcurrentMap[T, E]) Get

func (m *ConcurrentMap[T, E]) Get(key T) (E, bool)

func (*ConcurrentMap[T, E]) IterateKeys

func (m *ConcurrentMap[T, E]) IterateKeys() <-chan T

func (*ConcurrentMap[T, E]) IterateValues

func (m *ConcurrentMap[T, E]) IterateValues() <-chan E

func (*ConcurrentMap[T, E]) Put

func (m *ConcurrentMap[T, E]) Put(key T, value E)

type ConcurrentQueue

type ConcurrentQueue[T any] struct {
	// contains filtered or unexported fields
}

func NewConcurrentQueue

func NewConcurrentQueue[T any]() *ConcurrentQueue[T]

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Jump to

Keyboard shortcuts

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