Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶ added in v4.3.0
type Map[K MapHashable, V any] struct { // contains filtered or unexported fields }
func NewMap ¶ added in v4.3.0
func NewMap[K MapHashable, V any]() *Map[K, V]
func (*Map[K, V]) RangeDo ¶ added in v4.3.0
func (m *Map[K, V]) RangeDo(f TestAndSetFunc[K, V])
func (*Map[K, V]) TestAndSet ¶ added in v4.3.0
func (m *Map[K, V]) TestAndSet(key K, f TestAndSetFunc[K, V])
type MapHashable ¶ added in v4.3.0
type MapHashable interface { comparable MapHash() int }
type TestAndSetFunc ¶
type TestAndSetFunc[K comparable, V any] func(key K, v V, ok bool) (newV V, setV, deleteV bool)
Click to show internal directories.
Click to hide internal directories.