dict

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

type Dict map[any]any

func FromEntries

func FromEntries(entries ...[2]any) Dict

func (*Dict) Clear

func (d *Dict) Clear() *Dict

func (Dict) Copy

func (d Dict) Copy() Dict

func (*Dict) Delete

func (d *Dict) Delete(key any) bool

func (Dict) Empty

func (d Dict) Empty() bool

func (Dict) Equal

func (d Dict) Equal(another Dict) bool

func (Dict) Get

func (d Dict) Get(key any, defaultValue ...any) (value any)

func (Dict) Has

func (d Dict) Has(key any) bool

func (Dict) Items

func (d Dict) Items() [][2]any

func (Dict) Keys

func (d Dict) Keys() []any

func (Dict) MarshalJSON

func (d Dict) MarshalJSON() ([]byte, error)

func (*Dict) Pop

func (d *Dict) Pop(key any, args ...any) (value any, err error)

func (*Dict) PopItem

func (d *Dict) PopItem() (key, value any, err error)

func (*Dict) Set

func (d *Dict) Set(key, value any) *Dict

func (Dict) Size

func (d Dict) Size() int

func (*Dict) UnmarshalJSON

func (d *Dict) UnmarshalJSON(data []byte) (err error)

func (*Dict) Update

func (d *Dict) Update(another Dict) *Dict

func (Dict) Values

func (d Dict) Values() []any

Jump to

Keyboard shortcuts

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