Thanks. I think I figured it out. Apart from the build tags that you have
mentioned, depending on the code editor, the build tool need to be
specified GOOS and GOARCH too.

And some of the old code completion tools do not support the new syscall/js
package.

In my case, using atom.io, I had to launch it using $ GOOS=js GOARCH=wasm
atom

And I have just uninstalled go-plus. Now using gopls based code tips and
completion etc.

On Sun, Jan 24, 2021, 1:22 AM Jan Mercl <0xj...@gmail.com> wrote:

> On Sun, Jan 24, 2021 at 12:57 AM atd...@gmail.com <atd...@gmail.com>
> wrote:
>
> > My issue is that I do not know which build constraints I should specify
> for the static analysers to process the code.
>
> Seems like js _and_ wasm: https://golang.org/src/syscall/js/js.go#L5
>

-- 
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/CAJcwgVrA_tuRRAUrAQWbGWqvd-7_KYP54nXMXYmQQxpcJq0E0w%40mail.gmail.com.

Reply via email to