Documentation
¶
Index ¶
- type Pair
- type Record
- func (r *Record[K, V]) Delete(key K) (didDelete bool)
- func (r *Record[K, V]) Get(key K) (V, bool)
- func (r Record[K, V]) IsZero() bool
- func (r *Record[K, V]) KeyValues() iter.Seq2[K, V]
- func (r *Record[K, V]) Len() int
- func (r Record[K, V]) MarshalJSONTo(enc *jsontext.Encoder) error
- func (r *Record[K, V]) Set(key K, value V) bool
- func (r *Record[K, V]) UnmarshalJSONFrom(d *jsontext.Decoder) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pair ¶
type Pair[K comparable, V any] struct { Key K Value V }
type Record ¶
type Record[K comparable, V any] struct { // contains filtered or unexported fields }
func (Record[K, V]) MarshalJSONTo ¶
Click to show internal directories.
Click to hide internal directories.