Skip to content

chriscow/go-wasm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

Build the webassembly binary GOOS=js GOARCH=wasm go build -o ./build/example.wasm main.go

Copy the wasm_exec.js helper cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./build/

Serve python3 -m http.server

Reference

[Compile Go to WebAssembly] (https://fodor.org/blog/go-to-webassembly/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages