internal

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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]) Delete

func (r *Record[K, V]) Delete(key K) (didDelete bool)

func (*Record[K, V]) Get

func (r *Record[K, V]) Get(key K) (V, bool)

func (Record[K, V]) IsZero

func (r Record[K, V]) IsZero() bool

func (*Record[K, V]) KeyValues

func (r *Record[K, V]) KeyValues() iter.Seq2[K, V]

func (*Record[K, V]) Len

func (r *Record[K, V]) Len() int

func (Record[K, V]) MarshalJSONTo

func (r Record[K, V]) MarshalJSONTo(enc *jsontext.Encoder) error

func (*Record[K, V]) Set

func (r *Record[K, V]) Set(key K, value V) bool

func (*Record[K, V]) UnmarshalJSONFrom

func (r *Record[K, V]) UnmarshalJSONFrom(d *jsontext.Decoder) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL