# Packages
No description provided by the author
# Functions
Array returns an Array JS class.
AsyncCallbackOf returns a wrapped callback function.
Call is a shorthand for Global().Call().
CallbackOf returns a wrapped callback function.
Class searches for a class in global scope.
FuncOf returns a wrapped function.
Get is a shorthand for Global().Get().
MMap exposes memory of p to JS.
NativeFuncOf creates a function from a JS code string.
New searches for a class in global scope and creates a new instance of that class.
NewArray creates an empty JS array.
NewError creates a new Go error from JS error value.
NewEventCallback is a shorthand for NewEventCallbackFlags with default flags.
NewObject creates an empty JS object.
NewPromise runs a given function asynchronously by converting it to JavaScript promise.
Object returns an Object JS class.
Set is a shorthand for Global().Set().
TypedArrayOf returns a JavaScript typed array backed by the slice's underlying array.
ValueOf returns x as a JavaScript value:
| Go | JavaScript | | ---------------------- | ---------------------- | | js.Value | [its value] | | js.TypedArray | typed array | | js.Callback | function | | nil | null | | bool | boolean | | integers and floats | number | | string | string | | []interface{} | new array | | map[string]interface{} | new object |.
# Structs
Error is an alias for syscall/js.Error.
Func is a wrapped Go function to be called by JavaScript.
FuncGroup is a list of Go functions attached to an object.
No description provided by the author
Promise represents a JavaScript Promise.
Ref is an alias for syscall/js.Value.
TypedArray represents a JavaScript typed array.
Value is a convenience wrapper for syscall/js.Value.
# Interfaces
No description provided by the author