partmap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 2 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 struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap(partitons int) *Map

func (*Map) Count

func (m *Map) Count() int

func (*Map) Delete

func (m *Map) Delete(key string) (any, bool)

func (*Map) Each

func (m *Map) Each(fn func(key string, value any) error) error

func (*Map) Get

func (m *Map) Get(key string) (any, bool)

func (*Map) GetOrCreate

func (m *Map) GetOrCreate(key string, fn func() (any, error)) (any, error)

func (*Map) Set

func (m *Map) Set(key string, value any) any

Jump to

Keyboard shortcuts

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