container

package
v0.0.0-...-ecc870c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyInterface

type KeyInterface interface {
	string | []byte
}

type Mapper

type Mapper[K KeyInterface, V any] interface {
	Set(K, V)
	Get(K) (v V, ok bool)
	Reset()
	Len() int
	Delete(K)
	Visit(func(K, V) bool)
}

Directories

Path Synopsis
package gomap provides a container.Mapper implementation backed by Go's native map for benchmark reference.
package gomap provides a container.Mapper implementation backed by Go's native map for benchmark reference.
package hamap provides a collision-safe hashmap implementation which is more efficient than Go's native map for small datasets and allows allocation-free reseting efficiently reusing memory.
package hamap provides a collision-safe hashmap implementation which is more efficient than Go's native map for small datasets and allows allocation-free reseting efficiently reusing memory.
package linear provides a container.Mapper implementation backed by a slice and linear search for benchmark reference.
package linear provides a container.Mapper implementation backed by a slice and linear search for benchmark reference.

Jump to

Keyboard shortcuts

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