Versions in this module Expand all Collapse all v0 v0.0.2 Feb 20, 2024 v0.0.1 Feb 20, 2024 Changes in this version + var ErrInvalidArgumentType = errors.New("invalid argument passed into Go function") + var ErrMultipleReturnValue = errors.New("a JS function can only return one value") + func Expose(property string, x interface{}) + func FromJSValue(x js.Value, out interface{}) error + func NewError(goErr error) js.Value + func Ready() + func ToJSValue(x interface{}) js.Value + type Decoder interface + FromJSValue func(js.Value) error + type InvalidArrayError struct + Actual int + Expected int + func (e InvalidArrayError) Error() string + type InvalidFromJSValueError struct + Type reflect.Type + func (e InvalidFromJSValueError) Error() string + type InvalidTypeError struct + GoType reflect.Type + JSType js.Type + func (e InvalidTypeError) Error() string + type Object struct + func Global() Object + func NewObject(raw js.Value) (Object, error) + func (o Object) Delete(p string) + func (o Object) Equal(v js.Value) bool + func (o Object) Expect(expectedType js.Type, path ...string) (js.Value, error) + func (o Object) Get(path ...string) (js.Value, error) + func (o Object) Index(i int) js.Value + func (o Object) InstanceOf(t js.Value) bool + func (o Object) JSValue() js.Value + func (o Object) Length() int + func (o Object) Set(p string, x interface{}) + func (o Object) SetIndex(i int, x interface{}) + func (o Object) String() string + type Promise struct + func NewPromise(handler func() (interface{}, error)) Promise + func PromiseAll(promise ...Promise) Promise + func PromiseAllSettled(promise ...Promise) Promise + func PromiseAny(promise ...Promise) Promise + func PromiseRace(promise ...Promise) Promise + func (p *Promise) FromJSValue(value js.Value) error + func (p Promise) Await(v interface{}) error + type TypeMismatchError struct + Actual js.Type + Expected js.Type + func (e TypeMismatchError) Error() string + type Wrapper interface + JSValue func() js.Value