Documentation ¶
Index ¶
- type Safemap
- func (s *Safemap[K, V]) Clear()
- func (s *Safemap[K, V]) Delete(key K)
- func (s *Safemap[K, V]) Each(f func(key K, value V))
- func (s *Safemap[K, V]) EachWithBreak(f func(key K, value V) bool)
- func (s *Safemap[K, V]) Get(key K) (V, bool)
- func (s *Safemap[K, V]) Has(key K) bool
- func (s *Safemap[K, V]) Keys() []K
- func (s *Safemap[K, V]) Len() int
- func (s *Safemap[K, V]) Set(key K, value V)
- func (s *Safemap[K, V]) Values() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Safemap ¶
type Safemap[K comparable, V any] struct { // contains filtered or unexported fields }
func New ¶ added in v1.0.31
func New[K comparable, V any]() *Safemap[K, V]
func (*Safemap[K, V]) EachWithBreak ¶
Click to show internal directories.
Click to hide internal directories.