Documentation
¶
Index ¶
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 }
SafeMap is a thread-safe wrapper over a generic map[k]V.
func New ¶
func New[K comparable, V any]() *SafeMap[K, V]
New returns a pointer to a new instance of SafeMap.
func (*SafeMap[K, V]) Delete ¶
func (s *SafeMap[K, V]) Delete(key K)
Delete a value from the SafeMap.
Click to show internal directories.
Click to hide internal directories.