Versions in this module Expand all Collapse all v0 v0.1.11 Oct 3, 2023 v0.1.10 Oct 2, 2023 Changes in this version + type RandomMap struct + func New(opts ...shrinkingmap.Option) *RandomMap[K, V] + func (rmap *RandomMap[K, V]) Delete(key K) (value V, deleted bool) + func (rmap *RandomMap[K, V]) ForEach(consumer func(key K, value V) bool) + func (rmap *RandomMap[K, V]) Get(key K) (result V, exists bool) + func (rmap *RandomMap[K, V]) Has(key K) bool + func (rmap *RandomMap[K, V]) Keys() (result []K) + func (rmap *RandomMap[K, V]) RandomEntry() (defaultValue V, exists bool) + func (rmap *RandomMap[K, V]) RandomKey() (defaultValue K, exists bool) + func (rmap *RandomMap[K, V]) RandomUniqueEntries(count int) (results []V) + func (rmap *RandomMap[K, V]) Set(key K, value V) + func (rmap *RandomMap[K, V]) Size() int