wasm

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: ISC Imports: 0 Imported by: 0

README

To make a wasm-based REPL for goal, you have to compile the package to wasm into a goal.wasm file located in the same directory, along index.html and style.css.

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

You also need to copy the wasm_exec.js support file corresponding to your Go version, as explained in Go Wiki: WebAssembly.

The resulting directory can then be served over HTTP.

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