ordered_map

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item[K comparable, V any] struct {
	Key   K
	Value V
}

type Map

type Map[K comparable, V any] []Item[K, V]

func (Map[K, V]) Get

func (self Map[K, V]) Get(key K) (V, bool)

func (Map[K, V]) Has

func (self Map[K, V]) Has(key K) bool

func (Map[K, V]) MarshalJSON

func (self Map[K, V]) MarshalJSON() ([]byte, error)

func (*Map[K, V]) Set

func (self *Map[K, V]) Set(key K, value V)

Jump to

Keyboard shortcuts

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