objectmap

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("Browser not implemented Mapy")
	ErrNotAMap        = errors.New("The given value must be a Map")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface of object channel

Types

type ObjectMap

type ObjectMap struct {
	baseobject.BaseObject
}

ObjectMap

func New

func New(values ...interface{}) (ObjectMap, error)

func NewFromBaseObject

func NewFromBaseObject(b baseobject.BaseObject) (ObjectMap, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (ObjectMap, error)

func New_

func New_(values ...interface{}) ObjectMap

func (ObjectMap) Clear

func (o ObjectMap) Clear() error

func (ObjectMap) Delete

func (o ObjectMap) Delete(key interface{}) (bool, error)

func (ObjectMap) Entries

func (o ObjectMap) Entries() (iterator.Iterator, error)

func (ObjectMap) ForEach

func (o ObjectMap) ForEach(f func(value, index interface{})) error

func (ObjectMap) Get

func (o ObjectMap) Get(key interface{}) (interface{}, error)

func (ObjectMap) Get_

func (o ObjectMap) Get_(key interface{}) interface{}

func (ObjectMap) Has

func (o ObjectMap) Has(key interface{}) (bool, error)

func (ObjectMap) Has_

func (o ObjectMap) Has_(key interface{}) bool

func (ObjectMap) Keys

func (o ObjectMap) Keys() (iterator.Iterator, error)

func (ObjectMap) ObjectMap_

func (o ObjectMap) ObjectMap_() ObjectMap

func (ObjectMap) Set

func (o ObjectMap) Set(key interface{}, value interface{}) error

func (ObjectMap) Size

func (o ObjectMap) Size() (int, error)

func (ObjectMap) Values

func (o ObjectMap) Values() (iterator.Iterator, error)

type ObjectMapFrom

type ObjectMapFrom interface {
	ObjectMap_() ObjectMap
}

Jump to

Keyboard shortcuts

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