Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 586 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 586 Bytes

WASM SOURCE CODE

# 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

Go vs TinyGo

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