jsutil

package
v0.0.0-...-bf93970 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = js.Global().Get("Error")
View Source
var Promise = js.Global().Get("Promise")
View Source
var Uint8Array = js.Global().Get("Uint8Array")

Functions

func AwaitPromise

func AwaitPromise(promise js.Value) (js.Value, error)

func BytesToUint8Array

func BytesToUint8Array(b []byte) js.Value

func NewError

func NewError(err error) js.Value

func NewPromise

func NewPromise(f func() (any, error)) js.Value

func Uint8ArrayToBytes

func Uint8ArrayToBytes(uint8Array js.Value) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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