Documentation ¶
Index ¶
- type Base
- type Map
- func (m *Map[K, V]) Clean()
- func (m *Map[K, V]) Clone() *Map[K, V]
- func (m *Map[K, V]) Contains(key K) bool
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Display()
- func (m *Map[K, V]) Entries() map[K]V
- func (m *Map[K, V]) Filter(fn func(K, V) bool) *Map[K, V]
- func (m *Map[K, V]) Get(key K) (V, bool)
- func (m *Map[K, V]) IsEmpty() bool
- func (m *Map[K, V]) Keys() []K
- func (m *Map[K, V]) Merge(m2 *Map[K, V])
- func (m *Map[K, V]) Set(key K, value V)
- func (m *Map[K, V]) Size() int
- func (m *Map[K, V]) Values() []V
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base[T comparable] struct { Value T // contains filtered or unexported fields }
type Map ¶
type Map[K comparable, V any] struct { Value map[K]V // contains filtered or unexported fields }
Map 是支持任何类型的键和值的泛型类型。
Click to show internal directories.
Click to hide internal directories.