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.