safe

package
v0.0.0-...-f847aad Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntMap

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

IntMap Used to store type mappings of string and uint64 and is thread safe. This is especially useful in protocol scenarios where string ID identifiers are used

func (*IntMap) Get

func (m *IntMap) Get(key string) (val uint64, found bool)

func (*IntMap) Put

func (m *IntMap) Put(key string, val uint64) (err error)

func (*IntMap) Remove

func (m *IntMap) Remove(key string) (err error)

Jump to

Keyboard shortcuts

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