hashmap

package
v0.0.0-...-b41d4c3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 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 Index

type Index struct {
	sync.RWMutex
	Records map[string]interface{}
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(records map[string]interface{}) *Index

func (*Index) Add

func (i *Index) Add(id string, v interface{})

func (*Index) AddMultiple

func (i *Index) AddMultiple(m map[string]interface{})

func (*Index) Copy

func (i *Index) Copy() map[string]interface{}

func (*Index) Exists

func (i *Index) Exists(id string) bool

func (*Index) Get

func (i *Index) Get(id string) interface{}

func (*Index) Length

func (i *Index) Length() int

func (*Index) Map

func (i *Index) Map(fn func(record interface{}) bool)

func (*Index) Remove

func (i *Index) Remove(id string)

Jump to

Keyboard shortcuts

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