webassembly

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 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 the JS interface

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) (promise.Promise, error)

func (WebAssembly) InstantiateStreaming

func (w WebAssembly) InstantiateStreaming(source interface{}, 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