Versions in this module Expand all Collapse all v1 v1.0.0 Nov 5, 2023 Changes in this version + var ErrKeyExists = errors.New("key already exists") + var ErrMissingKey = errors.New("unknown key") + func SortedKeys(m map[K]V) []K + type ComparableAndOrdered interface + type SynchronisedMap struct + func New(init map[T]U) *SynchronisedMap[T, U] + func (s *SynchronisedMap[T, U]) Bytes() ([]byte, error) + func (s *SynchronisedMap[T, U]) Contains(id T) bool + func (s *SynchronisedMap[T, U]) Get(id T) (U, error) + func (s *SynchronisedMap[T, U]) GetKeys() []T + func (s *SynchronisedMap[T, U]) Insert(k T, v U, errIfExists bool) (U, error) + func (s *SynchronisedMap[T, U]) Len() int + func (s *SynchronisedMap[T, U]) Merge(b []byte) error + func (s *SynchronisedMap[T, U]) Remove(id T) + func (s *SynchronisedMap[T, U]) String() string