orderedmap

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 Slice

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

func NewSlice

func NewSlice[K comparable, V any](sizeHint int, stable bool) *Slice[K, V]

func (*Slice[K, V]) Delete

func (s *Slice[K, V]) Delete(k K)

func (*Slice[K, V]) Len

func (s *Slice[K, V]) Len() int

func (*Slice[K, V]) Load

func (s *Slice[K, V]) Load(key K) (V, bool)

func (*Slice[K, V]) Range

func (s *Slice[K, V]) Range(f func(key K, value V) bool)

func (*Slice[K, V]) Store

func (s *Slice[K, V]) Store(k K, v V)

Jump to

Keyboard shortcuts

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