Documentation ¶
Index ¶
- type Map
- func (slf *Map[K, V]) Delete(k K)
- func (slf *Map[K, V]) Exist(key K) bool
- func (slf *Map[K, V]) ForEach(f func(K, V))
- func (slf *Map[K, V]) Get(k K) (V, bool)
- func (slf *Map[K, V]) Keys() []K
- func (slf *Map[K, V]) Len() int
- func (slf *Map[K, V]) Map() map[K]V
- func (slf *Map[K, V]) MarshalJSON() ([]byte, error)
- func (slf *Map[K, V]) Set(k K, v V)
- func (slf *Map[K, V]) UnmarshalJSON(bytes []byte) error
- func (slf *Map[K, V]) Values() []V
- type MapOption
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Map[K, V]) MarshalJSON ¶
func (*Map[K, V]) UnmarshalJSON ¶
type MapOption ¶
type MapOption[K comparable, V any] func(*Map[K, V])
func WithMapSource ¶
func WithMapSource[K comparable, V any](source map[K]V) MapOption[K, V]
Click to show internal directories.
Click to hide internal directories.