yea, have a look
https://stackoverflow.com/questions/76087007/golang-to-wasm-compilation

On Tue, Jun 20, 2023 at 8:32 AM 'Arul Pandiyan G' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> Any update on this?
>
> On Wednesday, April 12, 2023 at 8:42:48 PM UTC+5:30 Stan Srednyak wrote:
>
>> I compiled a Go program to wasm using
>>
>> GOOS=js GOARCH=wasm go build -o main.wasm
>>
>> It gives me the following error
>>
>> Error: failed to run main module `main.wasm`
>>
>> Caused by:
>>     0: failed to instantiate "main.wasm"
>>     1: unknown import: `go::debug` has not been defined
>>
>> How to fix this?
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/a09b9d89-27d2-4990-8d44-6199c376c6d9n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/a09b9d89-27d2-4990-8d44-6199c376c6d9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAE-786ixZDYvx399wxSbzKjGxL%3DYYnUv%2B2_ZU-dPfKG1auneig%40mail.gmail.com.

Reply via email to