fixedmap

package module
v0.0.0-...-5c336d7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 2 Imported by: 0

README

fixedmap

a simple go-routine-safe fixed length map struct

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedMap

type FixedMap struct {
	// contains filtered or unexported fields
}

func NewFixLenMap

func NewFixLenMap(len int) *FixedMap

func (*FixedMap) Delete

func (f *FixedMap) Delete(key interface{})

func (*FixedMap) Load

func (f *FixedMap) Load(key interface{}) (value interface{}, exist bool)

func (*FixedMap) LoadAndDelete

func (f *FixedMap) LoadAndDelete(key interface{}) (value interface{}, loaded bool)

func (*FixedMap) LoadOrStore

func (f *FixedMap) LoadOrStore(key interface{}, value interface{}) (actual interface{}, loaded bool)

func (*FixedMap) Range

func (f *FixedMap) Range(fn func(key, value interface{}) bool)

func (*FixedMap) Store

func (f *FixedMap) Store(key interface{}, value interface{})

Jump to

Keyboard shortcuts

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