Documentation
¶
Index ¶
- type KeyType
- type OrderedMap
- func (m *OrderedMap) Clear()
- func (m *OrderedMap) Delete(key KeyType)
- func (m *OrderedMap) Len() int
- func (m *OrderedMap) Load(key KeyType) (value ValueType, ok bool)
- func (m *OrderedMap) LoadOrStore(key KeyType, value ValueType) (actual ValueType, loaded bool)
- func (m *OrderedMap) Range(f func(key KeyType, value ValueType) bool)
- func (m *OrderedMap) Store(key KeyType, value ValueType)
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
OrderedMap is an ordered map collection. Not thread safe, but exposes the same interface as sync.Map
func (*OrderedMap) Clear ¶
func (m *OrderedMap) Clear()
Clear clears the map back to an empty state of no keys.
func (*OrderedMap) Delete ¶
func (m *OrderedMap) Delete(key KeyType)
Delete deletes this key from the map
func (*OrderedMap) Load ¶
func (m *OrderedMap) Load(key KeyType) (value ValueType, ok bool)
Load loads this key from the map
func (*OrderedMap) LoadOrStore ¶
func (m *OrderedMap) LoadOrStore(key KeyType, value ValueType) (actual ValueType, loaded bool)
LoadOrStore loads or stores
func (*OrderedMap) Range ¶
func (m *OrderedMap) Range(f func(key KeyType, value ValueType) bool)
Range iterates over the key/value pairs in order
func (*OrderedMap) Store ¶
func (m *OrderedMap) Store(key KeyType, value ValueType)
Store stores this key/value pair in the map
Click to show internal directories.
Click to hide internal directories.