Versions in this module Expand all Collapse all v1 v1.5.1 Sep 14, 2024 v1.5.0 Sep 11, 2024 Changes in this version + var ErrNotABaseObject = errors.New("Not a base object") + var ErrNotAnMEv = errors.New("The given value must be an Message Event") + var ErrNotAnObject = errors.New("The given value must be an object") + var ErrNotImplemented = errors.New("Browser not implemented Object") + var ErrNotImplementedFunc = errors.New(...) + var ErrObjectNotBool = errors.New("The given object is not boolean") + var ErrObjectNotDouble = errors.New("The given object is not a double") + var ErrObjectNotNumber = errors.New("The given object is not a number") + var ErrObjectNotString = errors.New("The given object is not a string") + var ErrUnableGetConstruct = errors.New("Unable to get the constructor") + var ErrUnableGetFunctName = errors.New("Unable to get the func name") + var ErrUndefinedValue = errors.New("Undefined value") + func Call(obj js.Value, name string, args ...interface{}) (js.Value, error) + func CopyBytesToGo(dst []byte, src js.Value) (int, error) + func CopyBytesToJS(dst js.Value, src []byte) (int, error) + func Discover(obj js.Value) (interface{}, error) + func Eval(str string) (js.Value, error) + func Get(obj js.Value, i interface{}) (js.Value, error) + func GetFuncName(inter js.Value) (string, error) + func GetIndex(obj js.Value, index int) (js.Value, error) + func GetInterfaceNumber() js.Value + func GetJsValueOf(i interface{}) js.Value + func GoValue(object js.Value) (interface{}, error) + func GoValue_(object js.Value) interface + func Invoke(f js.Value, args ...interface{}) (js.Value, error) + func IsInteger(obj js.Value) (bool, error) + func New(obj js.Value, args ...interface{}) (js.Value, error) + func Register(inter js.Value, contruct func(js.Value) (interface{}, error)) error + func Self() (interface{}, error) + func Set(obj js.Value, name string, val interface{}) error + func SetConsoleDebug(obj interface{}) + func SetSyscall() + func String(object js.Value) string + func ToStringWithErr(object js.Value) (string, error) + type BaseObject struct + func NewFromJSObject(obj js.Value) (BaseObject, error) + func (b BaseObject) BaseObject_() BaseObject + func (b BaseObject) Bind(to BaseObject) (interface{}, error) + func (b BaseObject) Call(name string, args ...interface{}) (js.Value, error) + func (b BaseObject) CallBool(method string) (bool, error) + func (b BaseObject) CallInt(method string) (int, error) + func (b BaseObject) CallInt64(method string) (int64, error) + func (b BaseObject) Class() (string, error) + func (b BaseObject) Class_() string + func (b BaseObject) ConstructName() (string, error) + func (b BaseObject) ConstructName_() string + func (b BaseObject) Debug(msg string) error + func (b BaseObject) Discover() (interface{}, error) + func (b BaseObject) Empty() bool + func (b BaseObject) Export(name string) + func (b BaseObject) Get(name string) (js.Value, error) + func (b BaseObject) GetAttributeBool(attribute string) (bool, error) + func (b BaseObject) GetAttributeDouble(attribute string) (float64, error) + func (b BaseObject) GetAttributeGlobal(attribute string) (interface{}, error) + func (b BaseObject) GetAttributeInt(attribute string) (int, error) + func (b BaseObject) GetAttributeInt64(attribute string) (int64, error) + func (b BaseObject) GetAttributeString(attribute string) (string, error) + func (b BaseObject) GetAttributeString_(attribute string) string + func (b BaseObject) GetIndex(index int) (js.Value, error) + func (b BaseObject) Implement(method string) (bool, error) + func (b BaseObject) JSObject() js.Value + func (b BaseObject) Length() int + func (b BaseObject) Set(name string, value interface{}) error + func (b BaseObject) SetAttribute(attribute string, i interface{}) error + func (b BaseObject) SetAttributeBool(attribute string, value bool) error + func (b BaseObject) SetAttributeDouble(attribute string, value float64) error + func (b BaseObject) SetAttributeInt(attribute string, value int) error + func (b BaseObject) SetAttributeString(attribute string, value string) error + func (b BaseObject) SetFunc(attribute string, f func(this js.Value, args []js.Value) interface{}) error + func (b BaseObject) SetObject(object js.Value) BaseObject + func (b BaseObject) String() string + func (b BaseObject) ToString() (string, error) + func (b BaseObject) ToString_() string + func (b BaseObject) Value() string + type ConsoleDebug interface + Debug func(opts ...interface{}) error + type Number struct + func (n Number) Number_() Number + type NumberFrom interface + Number_ func() Number + type ObjectFrom interface + BaseObject_ func() BaseObject + JSObject func() js.Value