concurrent

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func NewMap

func NewMap[K comparable, V any]() *Map[K, V]

func (*Map[K, V]) Delete

func (m *Map[K, V]) Delete(key K)

func (*Map[K, V]) Length

func (m *Map[K, V]) Length() int

func (*Map[K, V]) Load

func (m *Map[K, V]) Load(key K) (V, bool)

func (*Map[K, V]) Range

func (m *Map[K, V]) Range(f func(key K, value V) bool)

func (*Map[K, V]) Store

func (m *Map[K, V]) Store(key K, value V)

type Slice added in v1.15.5

type Slice[V any] struct {
	// contains filtered or unexported fields
}

func NewSlice added in v1.15.5

func NewSlice[V any]() *Slice[V]

func (*Slice[V]) All added in v1.15.5

func (s *Slice[V]) All() []V

func (*Slice[V]) Append added in v1.15.5

func (s *Slice[V]) Append(value V)

func (*Slice[V]) Find added in v1.15.5

func (s *Slice[V]) Find(predicate func(V) bool) (V, int)

func (*Slice[V]) Get added in v1.15.5

func (s *Slice[V]) Get(index int) (V, bool)

func (*Slice[V]) Length added in v1.15.5

func (s *Slice[V]) Length() int

func (*Slice[V]) Range added in v1.15.5

func (s *Slice[V]) Range(f func(index int, value V) bool)

func (*Slice[V]) Set added in v1.15.5

func (s *Slice[V]) Set(index int, value V) bool

func (*Slice[V]) Update added in v1.15.5

func (s *Slice[V]) Update(index int, f func(V) V) bool

Jump to

Keyboard shortcuts

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