Documentation
¶
Rendered for js/wasm
Index ¶
- Variables
- func Await(promise js.Value) (js.Value, error)
- func Bytes2JS(b []byte) js.Value
- func JS2Bytes(v js.Value) []byte
- func JS2Go[V any](v js.Value, typ js.Type, fn func(js.Value) V) (V, bool)
- func NewArray[E any, S ~[]E](s S) js.Value
- func NewError(format string, args ...any) js.Value
- func NewErrorWithStack(stack, format string, args ...any) js.Value
- func NewObject(kv ...any) js.Value
- func NewPromise(exec func(ctx context.Context, resolve, reject func(any))) js.Value
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.