ego

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 0

README

ego

Go Reference

the confidence

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncFuncOf added in v1.3.0

func AsyncFuncOf(fn func(this js.Value, args []js.Value) any) js.Func

AsyncFuncOf returns an async function to be used by JavaScript.

func Await added in v1.2.0

func Await(v js.Value) (ret js.Value, err error)

Awaits a promise to be resolved and returned synchronously or rejected as an error.

func BytesToUint8Array

func BytesToUint8Array(bytes []byte) js.Value

Converts bytes to Uint8Array.

func IsFunction added in v1.3.0

func IsFunction(v js.Value) bool

func IsObject added in v1.3.0

func IsObject(v js.Value) bool

func KeepAlive

func KeepAlive()

Keep thread alive.

func Uint8ArrayToBytes

func Uint8ArrayToBytes(array js.Value) []byte

Converts Uint8Array to bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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