Skip to content

dolanor/drawasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Drawasm

Simple example from Sendil Kumar N

Run

Go wasm

# We generate the wasm binary with standard Go and copy its wasm_exec.js counterpart
GOOS=js GOARCH=wasm go generate ./cmd/drawasm
go run ./cmd/server/server.go

TinyGo wasm

# We generate the wasm binary with TinyGo and copy its wasm_exec.js counterpart
go generate ./cmd/drawasm
go run ./cmd/server/server.go

The TinyGo version crashes when you draw too many segments since it doesn't have GC yet. But then, it's lighter!

Releases

No releases published

Packages

No packages published