Documentation ¶
Index ¶
- type KeyValuePair
- type List
- type Map
- func (c *Map) Count() int
- func (c *Map) Delete(key interface{}) interface{}
- func (c *Map) Get(key interface{}) interface{}
- func (c *Map) KIterator() <-chan interface{}
- func (c *Map) KVIterator() <-chan KeyValuePair
- func (c *Map) Put(key interface{}, value interface{})
- func (c *Map) Reset()
- func (c *Map) ToList() []interface{}
- func (c *Map) VIterator() <-chan interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValuePair ¶
type KeyValuePair struct { Key interface{} Value interface{} }
KeyValuePair is used by the Map iterator
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a concurrent list
func NewConcurrentList ¶
func NewConcurrentList() *List
NewConcurrentList creates a new concurrent list
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a concurrent map
func (*Map) Delete ¶
func (c *Map) Delete(key interface{}) interface{}
Delete deletes an item with the specified key
func (*Map) Get ¶
func (c *Map) Get(key interface{}) interface{}
Get gets an item from the map with the specified key
func (*Map) KIterator ¶
func (c *Map) KIterator() <-chan interface{}
KIterator is the key iterator of the map
func (*Map) KVIterator ¶
func (c *Map) KVIterator() <-chan KeyValuePair
KVIterator is the key-value iterator of the map
func (*Map) Put ¶
func (c *Map) Put(key interface{}, value interface{})
Put puts a key value pair into the map
Click to show internal directories.
Click to hide internal directories.