Now it's possible to compile C++ code into WASM and than use it in Go with the help of wazero runtime. No CGO is needed. Consider go-sqlite3 as an example.