Documentation
¶
Index ¶
- type Dict
- func (d *Dict[K, V]) Clear() *Dict[K, V]
- func (d Dict[K, V]) Copy() Dict[K, V]
- func (d *Dict[K, V]) Delete(key K) bool
- func (d Dict[K, V]) Empty() bool
- func (d Dict[K, V]) Equal(another Dict[K, V]) bool
- func (d Dict[K, V]) Get(key K, defaultValue ...V) (value V)
- func (d Dict[K, V]) Has(key K) bool
- func (d Dict[K, V]) Items() []*DictItem[K, V]
- func (d Dict[K, V]) Keys() []K
- func (d Dict[K, V]) MarshalJSON() ([]byte, error)
- func (d *Dict[K, V]) Pop(key K, args ...V) (value V, err error)
- func (d *Dict[K, V]) PopItem() (key K, value V, err error)
- func (d *Dict[K, V]) Set(key K, value V) *Dict[K, V]
- func (d Dict[K, V]) Size() int
- func (d *Dict[K, V]) UnmarshalJSON(data []byte) (err error)
- func (d *Dict[K, V]) Update(another Dict[K, V]) *Dict[K, V]
- func (d Dict[K, V]) Values() []V
- type DictItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
type Dict[K comparable, V any] map[K]V
func (Dict[K, V]) MarshalJSON ¶
func (*Dict[K, V]) UnmarshalJSON ¶
type DictItem ¶
type DictItem[K comparable, V any] struct { Key K Value V }
Click to show internal directories.
Click to hide internal directories.