kemokemo / wasmgo-sketchbook

My sketchbook for the wasm with golang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasmgo-sketchbook

My sketchbook for the wasm with golang. Please refer the WebAssembly.

How to build and serve

Write it with a command using fish shell.

env GOOS=js GOARCH=wasm go build -o main.wasm
cp (go env GOROOT)/misc/wasm/wasm_exec.js .
go get -u github.com/shurcooL/goexec
goexec 'http.ListenAndServe(":8080", http.FileServer(http.Dir(".")))'

About

My sketchbook for the wasm with golang.

License:MIT License


Languages

Language:HTML 60.7%Language:Go 39.3%