/wasm-go

🌎 A simple example using Go and Web Assembly (wasm)

Primary LanguageJavaScript

Go ❤️ Web Assembly (simple example)

go-build

This is a simple example of a WASM file generated using Go. You can change the following slider to modify a gray scale for this gopher. This image manipulation is not done using JS, is actually performed by a Go program running into your browser.

Find more in this Medium blog post here

🕹 Try it

Try it here

How to run it (for local development)

Execute:

make start

To compile Go program into a .wasm file and serve it through nginx listening in port :8080

Then go to http://localhost:8080.

wasm+go