misc/wasm: unable to import and use golang created distributed wasm files #65806
Labels
arch-wasm
WebAssembly issues
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-JS
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Go version
go version go1.22.0 windows/amd64
Output of
go env
in your module/workspace:What did you do?
build of
executable
andwasm
using the followingi am able to use the
executable
correctly. but when i use the following code it fails to import thewasm
file and run the main or the exported function. i have only onemain.go
file and ago.mod
file below. the docs seem to be a little insufficient here.go.mod
filedemo.js
demo.mjs
What did you see happen?
i get an error as below
What did you expect to see?
GetUUID(args []string) string
and themain()
function results-
creating a js, nodejs, wapi target
wasm file,-
importing
tohtml/js
,nodejs
,python
,golang
,java
The text was updated successfully, but these errors were encountered: