Versions in this module Expand all Collapse all v0 v0.3.5 Jan 15, 2023 Changes in this version + const TypeBoolean — js/wasm + const TypeFunction — js/wasm + const TypeNull — js/wasm + const TypeNumber — js/wasm + const TypeObject — js/wasm + const TypeString — js/wasm + const TypeSymbol — js/wasm + const TypeUndefined — js/wasm + func CopyBytesToGo(dst []byte, src Value) int + func CopyBytesToJS(dst Value, src []byte) int + type Error struct + func (e Error) Error() string + type Func struct + func FuncOf(fn func(Value, []Value) interface{}) Func + func (c Func) Release() + type Type int + const TypeBoolean + const TypeFunction + const TypeNull + const TypeNumber + const TypeObject + const TypeString + const TypeSymbol + const TypeUndefined + func (t Type) String() string + type Value sjs.Value — js/wasm + func Global() Value + func ValueOf(x interface{}) Value + func (v Value) Float() float64 + func (v Value) Int() int + func (v Value) String() string + type Value struct — darwin/amd64, linux/amd64, windows/amd64 + func Null() Value + func Undefined() Value + func (v Value) Bool() bool + func (v Value) Call(m string, args ...interface{}) Value + func (v Value) Get(p string) Value + func (v Value) Index(i int) Value + func (v Value) InstanceOf(t Value) bool + func (v Value) Invoke(args ...interface{}) Value + func (v Value) IsNull() bool + func (v Value) IsUndefined() bool + func (v Value) JSValue() Value + func (v Value) Length() int + func (v Value) New(args ...interface{}) Value + func (v Value) Set(p string, x interface{}) + func (v Value) SetIndex(i int, x interface{}) + func (v Value) Truthy() bool + func (v Value) Type() Type + type ValueError struct + Method string + Type Type + func (e *ValueError) Error() string + type Wrapper interface + JSValue func() Value