Versions in this module Expand all Collapse all v1 v1.0.0 Dec 17, 2021 Changes in this version + func Alert(a ...interface{}) — js/wasm + func Alertf(format string, a ...interface{}) — js/wasm + func Bytes(arrayBuffer Value) []byte — js/wasm + func Confirm(a ...interface{}) bool — js/wasm + func Confirmf(format string, a ...interface{}) bool — js/wasm + func IsNaN(v js.Value) bool — js/wasm + func IsUndefined(v js.Value) bool — js/wasm + func ParseFloat(val string) (float64, bool) — js/wasm + func ParseInt(val string, radix int) (int, bool) — js/wasm + func RegisterFunc(name string, fn Func) — js/wasm + func RegisterValue(name string, val Value) — js/wasm + func ToGoBytes(uint8Array Value) []byte — js/wasm + func TypedArrayOf(x interface{}) js.Value — js/wasm + type Error struct — js/wasm + func ErrorOf(x Value) *Error + func (err *Error) Error() string + func (err *Error) JSValue() Value + type Event struct — js/wasm + func EventOf(x Value) *Event + func (e *Event) JSValue() Value + func (e *Event) String() string + func (e *Event) Target() Value + func (e *Event) Type() string + type EventTarget struct — js/wasm + func EventTargetOf(v Value) *EventTarget + func (e *EventTarget) AddEventListener(event string, cb Func) *EventTarget + func (e *EventTarget) JSValue() Value + func (e *EventTarget) Register(event string, cb Func) *EventTarget + func (e *EventTarget) Release() + type Func = js.Func — js/wasm + func FuncOf(fn func(js.Value, []js.Value) interface{}) Func + type Value = js.Value — js/wasm + func Call(fn string, args ...interface{}) Value + func Get(name string) Value + func Global() Value + func New(constructor string, args ...interface{}) Value + func ToJSUint8Array(src []byte) Value + func ValueOf(x interface{}) Value + func Window() Value Other modules containing this package github.com/dairaga/js/v2