Documentation
¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Uint8ArrayClass = js.Global().Get("Uint8Array")
Uint8ArrayClass is the JS Uint8Array constructor.
Functions ¶
func AwaitPromise ¶ added in v0.0.11
AwaitPromise blocks the current goroutine until the JS Promise p resolves or rejects. Safe in WASM: channel receive yields the goroutine; the JS event loop keeps running.
func AwaitRequest ¶ added in v0.0.11
AwaitRequest blocks the current goroutine until the IndexedDB request req fires its "success" or "error" event. Ported from tinywasm/indexdb processRequest — proven pattern.
func ScanValue ¶ added in v0.0.12
ScanValue copies the JS value v into the Go pointer dest. Supports *string, *int, *int64, *int32, *float64, *bool, *[]byte, *any. []byte is read from a Uint8Array via js.CopyBytesToGo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.