Discover Packages
github.com/benjamincjackson/gotree
hashmap
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Mar 9, 2020
License: GPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
This package defines a generic hashmap
This hashmap can store any Hasher object as key
and any object as value.
Similarly to Java HashMap, Hasher objects must define two functions:
- HashCode and
- HashEquals
Returns all keys of the index
Returns the count for the given Edge
If the edge is not present, returns 0 and false
If the edge is present, returns the value and true
type KeyValue struct {
Key Hasher
Value interface{}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.