Skip to content

rhcarvalho/webassembly-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webassembly-demo

Experiment with Go, TinyGo and WebAssembly.

Building

Using the standard Go compiler:

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

Using TinyGo:

tinygo build -o demo-tiny.wasm -target wasm

Running

Random free port:

go run .

Chosen port:

go run . -p 8080

Chosen port and WebAssembly file compiled with TinyGo:

go run . -p 8080 -wasm=demo-tiny.wasm -tinygo

About

Experiment with Go, TinyGo and WebAssembly

Topics

Resources

Stars

Watchers

Forks

Languages