webassembly

package
v1.0.0-rc2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented  = errors.New("Browser not implemented WebAssembly")
	ErrNotAWebAssembly = errors.New("Object is not a WebAssembly")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get teh JS interface of broadcast channel

Types

type WebAssembly

type WebAssembly struct {
	baseobject.BaseObject
}

WebAssembly struct

func New

func New() (WebAssembly, error)

func NewFromJSObject

func NewFromJSObject(obj js.Value) (WebAssembly, error)

func (WebAssembly) Instantiate

func (w WebAssembly) Instantiate(source arraybuffer.ArrayBuffer, imports js.Value) (baseobject.BaseObject, error)

func (WebAssembly) InstantiateStreaming

func (w WebAssembly) InstantiateStreaming(source promise.Promise, imports js.Value) (promise.Promise, error)

func (WebAssembly) WebAssembly

func (w WebAssembly) WebAssembly() WebAssembly

type WebAssemblyFrom

type WebAssemblyFrom interface {
	WebAssembly() WebAssembly
}

Jump to

Keyboard shortcuts

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