Versions in this module Expand all Collapse all v0 v0.4.0 Jun 23, 2020 Changes in this version + const TypeFunction + const TypeObject + func NewError(e Wrapper) error + func Set(name string, v interface{}) + type Arr = []interface + type Callback = Func + type CallbackGroup = FuncGroup + type Error = js.Error + type Func = js.Func + func AsyncCallbackOf(fnc func(v []Value)) Func + func CallbackOf(fnc func(v []Value)) Func + func FuncOf(fnc func(this Value, args []Value) interface{}) Func + func NewCallback(fnc func(v []Value)) Func + func NewCallbackAsync(fnc func(v []Value)) Func + func NewEventCallback(fnc func(v Value)) Func + func NewFunc(fnc func(this Value, args []Value) interface{}) Func + type FuncGroup struct + func (g *FuncGroup) Add(cb Func) + func (g *FuncGroup) AddEventListener(event string, fnc func(Value)) + func (g *FuncGroup) ErrorEvent(fnc func(error)) + func (g *FuncGroup) ErrorEventChan() <-chan error + func (g *FuncGroup) OneTimeEvent(event string, fnc func(Value)) + func (g *FuncGroup) OneTimeEventChan(event string) <-chan Value + func (g *FuncGroup) OneTimeTrigger(event string) <-chan struct{} + func (g *FuncGroup) Release() + func (g *FuncGroup) Set(name string, fnc func([]Value)) + type JSRef = Wrapper + type Obj = map[string]interface + type Promise struct + func (p *Promise) Await() ([]Value, error) + func (p *Promise) AwaitContext(ctx context.Context) ([]Value, error) + func (p *Promise) JSValue() Ref + type Ref = js.Value + type Type = js.Type + type Value struct + func Array() Value + func Call(name string, args ...interface{}) Value + func Class(class string) Value + func Get(name string, path ...string) Value + func NativeFuncOf(argsAndCode ...string) Value + func New(class string, args ...interface{}) Value + func NewArray() Value + func NewFuncJS(argsAndCode ...string) Value + func NewObject() Value + func NewPromise(fnc func() ([]interface{}, error)) Value + func Object() Value + func ValueOf(o interface{}) Value + func (v *Value) UnmarshalJSON(p []byte) (err error) + func (v Value) Await() ([]Value, error) + func (v Value) Call(name string, args ...interface{}) Value + func (v Value) Get(name string, path ...string) Value + func (v Value) Index(i int) Value + func (v Value) InstanceOf(class Value) bool + func (v Value) InstanceOfClass(class string) bool + func (v Value) Invoke(args ...interface{}) Value + func (v Value) IsNull() bool + func (v Value) IsUndefined() bool + func (v Value) JSRef() Ref + func (v Value) JSValue() Ref + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) New(args ...interface{}) Value + func (v Value) NewCallbackGroup() *FuncGroup + func (v Value) NewFuncGroup() *FuncGroup + func (v Value) Promised() *Promise + func (v Value) Set(name string, val interface{}) + func (v Value) SetIndex(i int, val interface{}) + func (v Value) Slice() []Value + func (v Value) String() string + func (v Value) Type() Type + func (v Value) Valid() bool + type Wrapper interface + JSValue func() js.Value