Documentation ¶
Index ¶
- type GenMap
- func (m GenMap[K, V]) Clear() GenMap[K, V]
- func (m GenMap[K, V]) Clone() GenMap[K, V]
- func (m GenMap[K, V]) CopyFrom(src GenMap[K, V]) GenMap[K, V]
- func (m GenMap[K, V]) CopyFromRaw(src map[K]V) GenMap[K, V]
- func (m GenMap[K, V]) CopyTo(dst GenMap[K, V]) GenMap[K, V]
- func (m GenMap[K, V]) CopyToRaw(dst map[K]V) GenMap[K, V]
- func (m GenMap[K, V]) Delete(k K) GenMap[K, V]
- func (m GenMap[K, V]) DeleteFunc(f func(k K, v V) bool)
- func (m GenMap[K, V]) EqualFunc(m2 GenMap[K, V], eq func(V, V) bool) bool
- func (m GenMap[K, V]) Keys() []K
- func (m GenMap[K, V]) Len() int
- func (m GenMap[K, V]) Load(k K) (v V, ok bool)
- func (m GenMap[K, V]) LoadAndDelete(k K) (v V, loaded bool)
- func (m GenMap[K, V]) LoadAndStore(k K, v V) (actual V, loaded bool)
- func (m GenMap[K, V]) LoadOrStore(k K, v V) (actual V, loaded bool)
- func (m GenMap[K, V]) LoadOrStoreFunc(k K, newFunc func() V) (actual V, loaded bool)
- func (m GenMap[K, V]) Map() map[K]V
- func (m GenMap[K, V]) Range(f func(k K, v V) (Continue bool)) (RangeAll bool)
- func (m GenMap[K, V]) Store(k K, v V) GenMap[K, V]
- func (m GenMap[K, V]) Values() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenMap ¶
type GenMap[K comparable, V any] map[K]V
func From ¶
func From[K comparable, V any](m map[K]V) GenMap[K, V]
func New ¶
func New[K comparable, V any]() GenMap[K, V]
func (GenMap[K, V]) CopyFromRaw ¶
func (GenMap[K, V]) DeleteFunc ¶
func (GenMap[K, V]) LoadAndDelete ¶
func (GenMap[K, V]) LoadAndStore ¶
func (GenMap[K, V]) LoadOrStore ¶
func (GenMap[K, V]) LoadOrStoreFunc ¶
Click to show internal directories.
Click to hide internal directories.