Documentation
¶
Index ¶
- type Map
- func (m *Map) Empty() bool
- func (m *Map) Get(key interface{}) (value interface{}, found bool)
- func (m *Map) Keys() []interface{}
- func (m *Map) Put(key interface{}, value interface{})
- func (m *Map) Remove(key interface{})
- func (m *Map) Size() int
- func (m *Map) String() string
- func (m *Map) Values() []interface{}
- type Order
- type OrderMap
- type OrderSet
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map represents an associative array or map abstract data type.
func (*Map) Keys ¶
func (m *Map) Keys() []interface{}
Keys return the keys in the map in insertion order.
func (*Map) Put ¶
func (m *Map) Put(key interface{}, value interface{})
Put adds items to the map.
If a key is found in the map it replaces it value.
func (*Map) Remove ¶
func (m *Map) Remove(key interface{})
Remove deletes a key-value pair from the Map.
If a key is not found in the map it doesn't fails, just does nothing.
type OrderMap ¶
type OrderSet ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set represents a dynamic, insertion-ordered, set abstract data type.
func (*Set) Add ¶
func (s *Set) Add(items ...interface{})
Add adds items to the set.
If an item is found in the set it replaces it.
func (*Set) Remove ¶
func (s *Set) Remove(items ...interface{})
Remove deletes items from the set.
If an item is not found in the set it doesn't fails, just does nothing.
Click to show internal directories.
Click to hide internal directories.