hmap

package
v0.0.0-...-2e08f04 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashString

func HashString(value KeyType) uint32

func HashUint32

func HashUint32(value KeyType) uint32

Types

type HashMap

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

func New

func New(hash func(KeyType) uint32) *HashMap

func (*HashMap) Get

func (m *HashMap) Get(key KeyType) (ValueType, bool)

func (*HashMap) Insert

func (m *HashMap) Insert(key KeyType, value ValueType)

func (*HashMap) Remove

func (m *HashMap) Remove(key KeyType)

type KeyType

type KeyType interface{}

type ValueType

type ValueType interface{}

Jump to

Keyboard shortcuts

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