Documentation ¶
Index ¶
- func Copy[T comparable, S any](s map[T]S) map[T]S
- type Map
- func (t *Map) ClearAll()
- func (t *Map) Copy() (m Map)
- func (t *Map) Delete(k any)
- func (t *Map) Len() int
- func (t *Map) Load(k any) (any, bool)
- func (t *Map) LoadOrStore(k, v any) (actual any, loaded bool)
- func (t *Map) LoadV(k any) (v any)
- func (t *Map) Range(f func(key, value any) bool)
- func (t *Map) Store(k, v any)
- type MapExceeded
- type RWMutex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v0.24.3
func Copy[T comparable, S any](s map[T]S) map[T]S
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) LoadOrStore ¶ added in v0.28.1
type MapExceeded ¶ added in v0.27.13
type MapExceeded[K, V any] struct { // contains filtered or unexported fields }
func (*MapExceeded[K, V]) Delete ¶ added in v0.27.13
func (t *MapExceeded[K, V]) Delete(k K)
func (*MapExceeded[K, V]) GC ¶ added in v0.27.13
func (t *MapExceeded[K, V]) GC()
func (*MapExceeded[K, V]) Len ¶ added in v0.27.13
func (t *MapExceeded[K, V]) Len() int
func (*MapExceeded[K, V]) Load ¶ added in v0.27.13
func (t *MapExceeded[K, V]) Load(k K) (*V, bool)
func (*MapExceeded[K, V]) Range ¶ added in v0.27.13
func (t *MapExceeded[K, V]) Range(f func(key K, value *V) bool)
func (*MapExceeded[K, V]) Store ¶ added in v0.27.13
func (t *MapExceeded[K, V]) Store(k K, v *V, dur time.Duration)
Click to show internal directories.
Click to hide internal directories.