Documentation ¶
Index ¶
- type Map
- type Set
- func (s *Set[K, V]) Contains(key K) bool
- func (s *Set[K, V]) Get(key K) (val V, ok bool)
- func (s *Set[K, V]) Iterate(fn func(key K, val V) bool)
- func (s *Set[K, V]) Len() int
- func (s *Set[K, V]) Put(key K, val V)
- func (s *Set[K, V]) Random() (V, bool)
- func (s *Set[K, V]) Remove(key K) (remaining int)
- type Slice
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[T any] struct { // contains filtered or unexported fields }
func (*Map[T]) GetAndUpdate ¶ added in v1.2.0
type Set ¶
type Set[K comparable, V any] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[K comparable, V any]() *Set[K, V]
Click to show internal directories.
Click to hide internal directories.