import "go.bmvs.io/orderedmap"
Package orderedmap implements a thread safe insertion ordered map.
OrderedMap insertion ordered Map implementation
func New() *OrderedMap
New return a new Map implemented by OrderedMap
func (m *OrderedMap) Empty() bool
Empty return if the OrderedMap in empty or not
func (m *OrderedMap) Get(key interface{}) (value interface{}, found bool)
Get return the value of a key from the OrderedMap
func (m *OrderedMap) Keys() []interface{}
Keys return the keys of the OrderedMap in insertion order
func (m *OrderedMap) Put(key, value interface{})
Put add a key-value pair to the OrderedMap
func (m *OrderedMap) Remove(key interface{})
Remove remove a key-value pair from the OrderedMap
func (m *OrderedMap) Size() int
Size return the size of the OrderedMap
func (m *OrderedMap) Values() []interface{}
Values return the values of the OrderedMap in insertion order
Package orderedmap imports 1 packages (graph) and is imported by 1 packages. Updated 2019-08-22. Refresh now. Tools for package owners.