Documentation
¶
Index ¶
- Variables
- type Map
- func (o *Map[K, V]) Clear()
- func (o *Map[K, V]) Clone() *Map[K, V]
- func (o *Map[K, V]) Del(key K)
- func (o *Map[K, V]) Get(key K) V
- func (o *Map[K, V]) Iter(yield func(key K, value V) bool)
- func (o *Map[K, V]) Keys() []K
- func (o *Map[K, V]) Len() int
- func (o *Map[K, V]) MarshalJSON() ([]byte, error)
- func (o *Map[K, V]) Set(key K, value V)
- func (o *Map[K, V]) TryGet(key K) (V, bool)
- func (o *Map[K, V]) Values() []V
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyTypeNotString = errors.New("key type must be string") ErrNilOrderedMap = errors.New("calling MarshalJSON on nil OrderedMap") )
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 ¶
Click to show internal directories.
Click to hide internal directories.