Documentation
¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitPromise ¶
AwaitPromise is a helper function that waits for a promise to resolve or reject and returns the results and an error value.
func BytesFromUint8Array ¶
BytesFromUint8Array is a helper function that copies the given Uint8Array into a new byte slice.
func NewPromise ¶
func NewPromise(fn PromiseExecutor) js.Value
NewPromise returns a new promise that calls the given executor function.
func Uint8ArrayFromBytes ¶
Uint8ArrayFromBytes is a helper function that copies the given byte slice into a new Uint8Array.
Types ¶
type PromiseExecutor ¶
PromiseExecutor is the function that will be called to resolve or reject the promise.
Click to show internal directories.
Click to hide internal directories.