js

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncFunc

func AsyncFunc(f func(this js.Value, p []js.Value) (any, error)) js.Func

func Await

func Await(promise js.Value) (val js.Value, err error)

func JsArrayToSlice

func JsArrayToSlice(jsArray js.Value) []byte

func Promise

func Promise() (promise js.Value, resolve func(args ...any), reject func(args ...any))

func ReleaseMap

func ReleaseMap(m map[string]any)

func SliceToJsArray

func SliceToJsArray(slice []byte) js.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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