js

package
v0.0.0-...-8a3766d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(name string, v Value)

Types

type Callback

type Callback = js.Callback

func NewCallback

func NewCallback(fnc func(v []Value)) Callback

func NewEventCallback

func NewEventCallback(fnc func(v Value)) Callback

func NewEventCallbackFlags

func NewEventCallbackFlags(flags int, fnc func(v Value)) Callback

type JSRef

type JSRef interface {
	JSRef() Ref
}

type Ref

type Ref = js.Value

type Value

type Value struct {
	Ref
}

func Get

func Get(name string) Value

func (Value) Call

func (v Value) Call(name string, args ...interface{}) Value

func (Value) Del

func (v Value) Del(name string)

func (Value) Get

func (v Value) Get(name string) Value

func (Value) Index

func (v Value) Index(i int) Value

func (Value) InstanceOf

func (v Value) InstanceOf(class Value) bool

func (Value) Invoke

func (v Value) Invoke(args ...interface{}) Value

func (Value) IsNull

func (v Value) IsNull() bool

func (Value) IsUndefined

func (v Value) IsUndefined() bool

func (Value) JSRef

func (v Value) JSRef() Ref

func (Value) New

func (v Value) New(args ...interface{}) Value

func (Value) Set

func (v Value) Set(name string, val interface{})

func (Value) SetIndex

func (v Value) SetIndex(i int, val interface{})

func (Value) Slice

func (v Value) Slice() []Value

func (Value) String

func (v Value) String() string

func (Value) Valid

func (v Value) Valid() bool

Jump to

Keyboard shortcuts

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