Go: switch CGo implementation to component model canonical ABI in pure Go implementation #614
Open
Description
I'd like to change the implementation of the go-bindgen from using CGO and depending on the C bindings to using the canonical ABI implementation.
The biggest block, however, is there is no mechanism to export functions to Wasm. I know that //go:wasmimport
will land in Go 1.21 (Augest release), and //go:wasmexport
is planned and might have developed. Once these two are available, I think we will be able to re-write the go-bindgen using canonical ABI.