Documentation
¶
Index ¶
- type Table
- func (t *Table[K, V]) Delete(key K)
- func (t *Table[K, V]) Get(key K) V
- func (t *Table[K, V]) GetOrCreateLock(key K) (*sync.Cond, bool)
- func (t *Table[K, V]) Load(key K) (value V, ok bool)
- func (t *Table[K, V]) LoadOrStore(key K, newValue V) (actual V, loaded bool)
- func (t *Table[K, V]) Range(f func(key K, value V) bool)
- func (t *Table[K, V]) Set(key K, value V)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Table[K, V]) GetOrCreateLock ¶
func (*Table[K, V]) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.