DEV Community

voluntas
voluntas

Posted on

1

VSCode で Go の syscall/js を利用する場合

"settings": {
    "go.toolsEnvVars": {
        "GOARCH":"wasm",
        "GOOS":"js",
    },
    "go.testEnvVars": {
        "GOARCH":"wasm",
        "GOOS":"js",
    }
}
Enter fullscreen mode Exit fullscreen mode

GOARCHに wasm 、GOOS に js を設定しないといつまでも認識してくれずエラーになる。

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more