# Go build wasm
> GOOS=js GOARCH=wasm go build -o go.wasm
# TinyGo build wasm
> tinygo build -no-debug -o tinygo.wasm -target=wasm main.go
wasm name | build command | size | Support |
---|---|---|---|
go.wasm |
GOOS=js GOARCH=wasm go build -o go.wasm |
4.0M | with full language support |
tinygo |
tinygo build -no-debug -o tinygo.wasm -target=wasm main.go |
393k | targeting minimal size |