#affected/package: syscall/js, build constraints exclude all Go files

6 messages · Page 1 of 1 (latest)

icy lantern
#

you have to give gopls the same environment variables through your editor configuration

naive heath
#

why not use some modern ide for go

#

i do VSCode

#

download that extension and go to extension settings, then edit settings.json to contain build.env needed variables

#

in your case:

    "gopls": {
        "build.env": {
            "GOOS": "js",
            "GOARCH": "wasm"
        }
    }
#

idk about Sublime Text