Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyLoweredMap ¶
func NewKeyLoweredMap ¶
func NewKeyLoweredMap[K ~string, V any](opts ...LoweredMapOpt[K, V]) *KeyLoweredMap[K, V]
func (*KeyLoweredMap[K, V]) Foreach ¶
func (d *KeyLoweredMap[K, V]) Foreach(callback func(key K, value V))
func (*KeyLoweredMap[K, V]) MapGet ¶
func (d *KeyLoweredMap[K, V]) MapGet(key K) V
func (*KeyLoweredMap[K, V]) MapGetValue ¶
func (d *KeyLoweredMap[K, V]) MapGetValue(key K) (V, bool)
func (*KeyLoweredMap[K, V]) MapSet ¶
func (d *KeyLoweredMap[K, V]) MapSet(key K, value V)
type LoweredMapOpt ¶ added in v0.8.2
type LoweredMapOpt[K ~string, V any] func(m *KeyLoweredMap[K, V])
func WithData ¶ added in v0.8.2
func WithData[K ~string, V any](data map[K]V) LoweredMapOpt[K, V]
Click to show internal directories.
Click to hide internal directories.