Versions in this module Expand all Collapse all v3 v3.1.0 Jan 2, 2025 Changes in this version type OrderedMap + func (m *OrderedMap[K, V]) Has(key K) bool v3.0.1 Dec 28, 2024 v3.0.0 Dec 4, 2024 Changes in this version + type Element struct + Key K + Value V + func (e *Element[K, V]) Next() *Element[K, V] + func (e *Element[K, V]) Prev() *Element[K, V] + type OrderedMap struct + func NewOrderedMapWithCapacity[K comparable, V any](capacity int) *OrderedMap[K, V] + func NewOrderedMapWithElements[K comparable, V any](els ...*Element[K, V]) *OrderedMap[K, V] + func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V] + func (m *OrderedMap[K, V]) AllFromBack() iter.Seq2[K, V] + func (m *OrderedMap[K, V]) AllFromFront() iter.Seq2[K, V] + func (m *OrderedMap[K, V]) Back() *Element[K, V] + func (m *OrderedMap[K, V]) Copy() *OrderedMap[K, V] + func (m *OrderedMap[K, V]) Delete(key K) (didDelete bool) + func (m *OrderedMap[K, V]) Front() *Element[K, V] + func (m *OrderedMap[K, V]) Get(key K) (value V, ok bool) + func (m *OrderedMap[K, V]) GetElement(key K) *Element[K, V] + func (m *OrderedMap[K, V]) GetOrDefault(key K, defaultValue V) V + func (m *OrderedMap[K, V]) Keys() iter.Seq[K] + func (m *OrderedMap[K, V]) Len() int + func (m *OrderedMap[K, V]) ReplaceKey(originalKey, newKey K) bool + func (m *OrderedMap[K, V]) Set(key K, value V) bool + func (m *OrderedMap[K, V]) Values() iter.Seq[V] Other modules containing this package github.com/elliotchance/orderedmap github.com/elliotchance/orderedmap/v2