Versions in this module Expand all Collapse all v0 v0.2.0 Jun 30, 2022 Changes in this version + var EnableOMapBuiltin = false + var ErrInvalidIteratorKey = fmt.Errorf(...) + var ErrInvalidIteratorMap = fmt.Errorf(...) + var ErrInvalidIteratorPos = fmt.Errorf("%w: iterator not positionated in a valid entry (either BOF or EOF)", ErrOMap) + var ErrInvalidIteratorType = fmt.Errorf(...) + var ErrKeyNotFound = fmt.Errorf("%w: key not found", ErrOMap) + var ErrOMap = errors.New("OMapError") + func IteratorKeysToSlice(it OMapIterator[K, V]) []K + func IteratorToString(typeName string, it OMapIterator[K, V]) string + func IteratorValuesToSlice(it OMapIterator[K, V]) []V + func MarshalJSON(it OMapIterator[K, V]) ([]byte, error) + func MoveAfter(m OMap[K, V], targetKey K, refKey K) error + func MoveBefore(m OMap[K, V], targetKey K, refKey K) error + func MoveFirst(m OMap[K, V], targetKey K) error + func MoveLast(m OMap[K, V], targetKey K) error + func UnmarshalJSON(putFunc func(K, V), b []byte) error + type Hasher interface + HashSum32 func() uint32 + type OMap interface + Delete func(key K) + Get func(key K) (value V, ok bool) + GetIteratorAt func(key K) OMapIterator[K, V] + Iterator func() OMapIterator[K, V] + Len func() int + Put func(key K, value V) + PutAfter func(it OMapIterator[K, V], key K, value V) error + func New() OMap[K, V] + func NewOMapBuiltin() OMap[K, V] + func NewOMapLinked() OMap[K, V] + func NewOMapLinkedHash() OMap[K, V] + func NewOMapSimple() OMap[K, V] + func NewOMapSync() OMap[K, V] + type OMapBuiltin struct + func (m *OMapBuiltin[K, V]) Delete(key K) + func (m *OMapBuiltin[K, V]) Get(key K) (V, bool) + func (m *OMapBuiltin[K, V]) GetIteratorAt(key K) OMapIterator[K, V] + func (m *OMapBuiltin[K, V]) Iterator() OMapIterator[K, V] + func (m *OMapBuiltin[K, V]) Len() int + func (m *OMapBuiltin[K, V]) Put(key K, value V) + func (m *OMapBuiltin[K, V]) PutAfter(interfaceIt OMapIterator[K, V], key K, value V) error + func (m *OMapBuiltin[K, V]) String() string + func (m OMapBuiltin[K, V]) MarshalJSON() ([]byte, error) + func (m OMapBuiltin[K, V]) UnmarshalJSON(b []byte) error + type OMapBuiltinData struct + type OMapBuiltinIterator struct + func (it *OMapBuiltinIterator[K, V]) EOF() bool + func (it *OMapBuiltinIterator[K, V]) Key() K + func (it *OMapBuiltinIterator[K, V]) MoveBack() OMapIterator[K, V] + func (it *OMapBuiltinIterator[K, V]) MoveFront() OMapIterator[K, V] + func (it *OMapBuiltinIterator[K, V]) Next() bool + func (it *OMapBuiltinIterator[K, V]) Prev() bool + func (it *OMapBuiltinIterator[K, V]) Value() V + func (it OMapBuiltinIterator[K, V]) IsValid() bool + type OMapIterator interface + EOF func() bool + IsValid func() bool + Key func() K + MoveBack func() OMapIterator[K, V] + MoveFront func() OMapIterator[K, V] + Next func() bool + Prev func() bool + Value func() V + type OMapLinked struct + func (m *OMapLinked[K, V]) Delete(key K) + func (m *OMapLinked[K, V]) Get(key K) (V, bool) + func (m *OMapLinked[K, V]) GetIteratorAt(key K) OMapIterator[K, V] + func (m *OMapLinked[K, V]) Iterator() OMapIterator[K, V] + func (m *OMapLinked[K, V]) Len() int + func (m *OMapLinked[K, V]) Put(key K, value V) + func (m *OMapLinked[K, V]) PutAfter(interfaceIt OMapIterator[K, V], key K, value V) error + func (m *OMapLinked[K, V]) String() string + func (m *OMapLinked[K, V]) UnmarshalJSON(b []byte) error + func (m OMapLinked[K, V]) MarshalJSON() ([]byte, error) + type OMapLinkedHash struct + func (m *OMapLinkedHash[K, V]) Delete(key K) + func (m *OMapLinkedHash[K, V]) Get(key K) (V, bool) + func (m *OMapLinkedHash[K, V]) GetIteratorAt(key K) OMapIterator[K, V] + func (m *OMapLinkedHash[K, V]) Iterator() OMapIterator[K, V] + func (m *OMapLinkedHash[K, V]) Len() int + func (m *OMapLinkedHash[K, V]) Put(key K, value V) + func (m *OMapLinkedHash[K, V]) PutAfter(interfaceIt OMapIterator[K, V], key K, value V) error + func (m *OMapLinkedHash[K, V]) String() string + func (m *OMapLinkedHash[K, V]) UnmarshalJSON(b []byte) error + func (m OMapLinkedHash[K, V]) MarshalJSON() ([]byte, error) + type OMapLinkedHashIterator struct + func (it *OMapLinkedHashIterator[K, V]) EOF() bool + func (it *OMapLinkedHashIterator[K, V]) IsValid() bool + func (it *OMapLinkedHashIterator[K, V]) Key() K + func (it *OMapLinkedHashIterator[K, V]) MoveBack() OMapIterator[K, V] + func (it *OMapLinkedHashIterator[K, V]) MoveFront() OMapIterator[K, V] + func (it *OMapLinkedHashIterator[K, V]) Next() bool + func (it *OMapLinkedHashIterator[K, V]) Prev() bool + func (it *OMapLinkedHashIterator[K, V]) Value() V + type OMapLinkedIterator struct + func (it *OMapLinkedIterator[K, V]) EOF() bool + func (it *OMapLinkedIterator[K, V]) IsValid() bool + func (it *OMapLinkedIterator[K, V]) Key() K + func (it *OMapLinkedIterator[K, V]) MoveBack() OMapIterator[K, V] + func (it *OMapLinkedIterator[K, V]) MoveFront() OMapIterator[K, V] + func (it *OMapLinkedIterator[K, V]) Next() bool + func (it *OMapLinkedIterator[K, V]) Prev() bool + func (it *OMapLinkedIterator[K, V]) Value() V + type OMapSimple struct + func (m *OMapSimple[K, V]) Delete(key K) + func (m *OMapSimple[K, V]) Get(key K) (V, bool) + func (m *OMapSimple[K, V]) GetIteratorAt(key K) OMapIterator[K, V] + func (m *OMapSimple[K, V]) Iterator() OMapIterator[K, V] + func (m *OMapSimple[K, V]) Len() int + func (m *OMapSimple[K, V]) Put(key K, value V) + func (m *OMapSimple[K, V]) PutAfter(interfaceIt OMapIterator[K, V], key K, value V) error + func (m *OMapSimple[K, V]) String() string + func (m *OMapSimple[K, V]) UnmarshalJSON(b []byte) error + func (m OMapSimple[K, V]) MarshalJSON() ([]byte, error) + type OMapSimpleIterator struct + func (it *OMapSimpleIterator[K, V]) MoveBack() OMapIterator[K, V] + func (it *OMapSimpleIterator[K, V]) MoveFront() OMapIterator[K, V] + func (it *OMapSimpleIterator[K, V]) Next() bool + func (it *OMapSimpleIterator[K, V]) Prev() bool + func (it OMapSimpleIterator[K, V]) EOF() bool + func (it OMapSimpleIterator[K, V]) IsValid() bool + func (it OMapSimpleIterator[K, V]) Key() K + func (it OMapSimpleIterator[K, V]) Value() V + type OMapSync struct + func (m *OMapSync[K, V]) Delete(key K) + func (m *OMapSync[K, V]) Get(key K) (V, bool) + func (m *OMapSync[K, V]) GetIteratorAt(key K) OMapIterator[K, V] + func (m *OMapSync[K, V]) Iterator() OMapIterator[K, V] + func (m *OMapSync[K, V]) Len() int + func (m *OMapSync[K, V]) MarshalJSON() ([]byte, error) + func (m *OMapSync[K, V]) Put(key K, value V) + func (m *OMapSync[K, V]) PutAfter(interfaceIt OMapIterator[K, V], key K, value V) error + func (m *OMapSync[K, V]) String() string + func (m *OMapSync[K, V]) UnmarshalJSON(b []byte) error + type OMapSyncIterator struct + func (it *OMapSyncIterator[K, V]) MoveBack() OMapIterator[K, V] + func (it *OMapSyncIterator[K, V]) MoveFront() OMapIterator[K, V] + func (it *OMapSyncIterator[K, V]) Next() bool + func (it *OMapSyncIterator[K, V]) Prev() bool + func (it OMapSyncIterator[K, V]) EOF() bool + func (it OMapSyncIterator[K, V]) IsValid() bool + func (it OMapSyncIterator[K, V]) Key() K + func (it OMapSyncIterator[K, V]) Value() V