A WIP that converts WebAssembly to pure Go code (more docs to come).
Has been used to successfully convert SQLite, HarfBuzz, ICU and others.
When using emscripten, version >= 1.39.0
with the STANDALONE_WASM
setting enabled is preferred.
The conversion is done in two steps.
- The WebAssembly is converted to an internal IR thats based on (protobuf).
- The IR is converted to Go source code.
git clone https://github.com/chrsan/wagu
cd wagu
go run cmd/*.go --help