Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
Cursor provides enumerating of Map items.
func (*Cursor) Next ¶
Next moves the cursor to the next item in the map and sets the K and V fields accordingly. It returns true on success, or false if there is no next item.
Every use of the K/V fields, even the first one, must be preceded by a call to Next, for example
for c := m.Cursor(); c.Next(); { ... c.K, c.V valid here }
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a hash table.
func New ¶
New returns a newly created Map. The hash function takes a key and returns its hash. The eq function takes two keys and returns whether they are equal.
func (*Map) Get ¶
Get returns the value associated with k and a boolean value indicating whether the key is in the map.
Click to show internal directories.
Click to hide internal directories.