wasmgo

command module
v0.0.0-...-9b8120c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

README

This is some experimental code for working with Go and WebAssembly.

Prerequisite

As of this writing, the Go release doesn't support WebAssembly so the version of Go from neelance is needed.

See https://blog.lazyhacker.com/2018/05/webassembly-wasm-with-go.html for how to build Go with WASM.

Install

go get lazyhacker.dev/wasmgo
cd $GOPATH/src/lazyhacker.dev/wasmgo
./build.sh

Note: build.sh assumes that the 'go' command is located in $HOME/go-wasm/bin. Make sure GOROOT is pointing to the 'go' command that has WASM support.

Running

The code needs to be served through a web server.

go install lazyhackergo/simplehttpserver
$GOPATH/bin/simplehttpserver

Demo

See the demos in your browser at https://www.lazyhacker.com/wasmgo

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
docs
demo
Ivy is a APL-like calculator written by Rob Pike.
Ivy is a APL-like calculator written by Rob Pike.

Jump to

Keyboard shortcuts

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