hash

package
v0.0.0-...-c404136 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

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

func HashCreate

func HashCreate(num int, hash_fun func(key string) int, equal_fun func(keyA, keyB string) bool) *Hash

func NewHash

func NewHash(num int) *Hash

func (*Hash) Add

func (hash *Hash) Add(key string, value interface{})

func (*Hash) ForEach

func (hash *Hash) ForEach(f func(i interface{}))

func (*Hash) Get

func (hash *Hash) Get(key string) (interface{}, bool)

Jump to

Keyboard shortcuts

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