Documentation ¶
Overview ¶
Package cmap implements a yet another concurrent map.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHasher ¶
func DefaultHasher(key interface{}) uint32
DefaultHasher is a hash function for a value of an arbitrary type. It is not encouraged to use this function to values of composit types, because it is slow on such values.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a concurrent map.
func (*Map) Delete ¶
func (m *Map) Delete(key interface{})
Delete logically removes the given key and its associated value.
func (*Map) Load ¶
Load returns the value associated with the given key and true if the key exists. Otherwise, it returns nil and false.
Click to show internal directories.
Click to hide internal directories.