Example code for the blog post: Go and WebAssembly (I): interacting with your browser JS API.
How to run it:
GOOS=js GOARCH=wasm go build -o site/main.wasm wasm-main/main.go
go run server.goAnd open the http://localhost:8080 URL in your browser.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Example code for the blog post: Go and WebAssembly (I): interacting with your browser JS API.
How to run it:
GOOS=js GOARCH=wasm go build -o site/main.wasm wasm-main/main.go
go run server.goAnd open the http://localhost:8080 URL in your browser.