neko-suki / wasm_struct

how to access Go's struct from wasm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to access Go's struct from WebAssembly

how to use

build

./build.sh

execute

go run server.go

One exasmple in http://localhost:8080/wasm_exec.html shows how to use Go struct from WASM.

Another example is available in http://localhost:8080/wrapper.html This example shows how to use Go's struct without any modification. I implemented wrapper function.

It also shows how to pass struct declared in Go as an argument.

About

how to access Go's struct from wasm


Languages

Language:Go 65.2%Language:HTML 30.3%Language:Shell 4.5%