maps

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ordered

type Ordered[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (Ordered[K, V]) Add

func (om Ordered[K, V]) Add(key K, asserts V) (Ordered[K, V], error)

func (*Ordered[K, V]) ForEach

func (om *Ordered[K, V]) ForEach(fn func(key K, val V) error) error

func (Ordered[K, V]) Get

func (om Ordered[K, V]) Get(key K) V

func (Ordered[K, V]) Len

func (om Ordered[K, V]) Len() int

func (Ordered[K, V]) MarshalJSON

func (om Ordered[K, V]) MarshalJSON() ([]byte, error)

func (Ordered[K, V]) MustAdd

func (om Ordered[K, V]) MustAdd(key K, asserts V) Ordered[K, V]

func (*Ordered[K, V]) UnmarshalJSON

func (om *Ordered[K, V]) UnmarshalJSON(data []byte) error

func (Ordered[K, V]) Unordered

func (om Ordered[K, V]) Unordered() map[K]V

Jump to

Keyboard shortcuts

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