jsutil

package
Version: v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package jsutil offers utility functions for Wasm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b js.Value) bool

func TemporaryFloat32Array

func TemporaryFloat32Array(minLength int, data interface{}) js.Value

TemporaryFloat32Array returns a Float32Array whose length is at least minLength. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.

func TemporaryUint8Array

func TemporaryUint8Array(minLength int, data interface{}) js.Value

TemporaryUint8Array returns a Uint8Array whose length is at least minLength. Be careful that the length can exceed the given minLength. data must be a slice of a numeric type for initialization, or nil if you don't need initialization.

func Uint8ArrayToSlice

func Uint8ArrayToSlice(value js.Value, length int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto