Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 346 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 346 Bytes

Web Assembly Sample

Prerequisites

  • Make sure the wasm Go helper is up to date:
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .

Build the sample

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

Run the sample

caddy run