tinygo-wasm-webgl-demo icon indicating copy to clipboard operation
tinygo-wasm-webgl-demo copied to clipboard

A basic tinygo-wasm-webgl demo

tinygo-wasm-webgl-demo

This repository contains a modified gowebapi/webapi demo that works with tinygo.

https://github.com/semanser/tinygo-wasm-webgl-demo/assets/4020045/2047caee-491a-4db6-bb49-8e24ec42bb43

Prerequisites

  • Install tinygo
  • Install http-server (or any other static web server of your choice). This is required to host the wasm file.

Compilation

$ tinygo build -o=main.wasm -target=wasm -no-debug ./main.go

184K main.wasm

Running

$ http-server .

Resources

  • https://tinygo.org/
  • https://github.com/gowebapi/webapi
  • https://github.com/http-party/http-server