jsx

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package jsx provides essential JavaScript functions that are used widely in wgpu and are very useful for an wasm / js application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Await

func Await(promise js.Value) (result js.Value, ok bool)

Await is a helper function equivalent to await in JS. It is copied from https://go-review.googlesource.com/c/go/+/150917/

func BytesToJS

func BytesToJS(b []byte) js.Value

BytesToJS converts the given bytes to a js Uint8ClampedArray by using the global wasm memory bytes. This avoids the copying present in js.CopyBytesToJS.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL