wasm

command
v2.1.19 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

README

WASM Demo

This directory contains a simple demo of running the scripting engine via a browser!

Compile / Install

Compile the code via make, or by running:

GOOS=js GOARCH=wasm go build -o lib.wasm

Copy the contents of wasm_exec.js to the same directory:

cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .

Now you can serve the contents of this directory via any HTTP-server and view the results

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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