Categorygithub.com/johngillott/go-wasm-experiments
module
0.0.0-20200407193716-545da064de2b
Repository: https://github.com/johngillott/go-wasm-experiments.git
Documentation: pkg.go.dev

# README

go-webassembly-experiments

Build

make <experiment>

Serve

make serve

Editor configuration

could not import syscall/js (no package for import syscall/js)

VS Code

When using Go modules related to WebAssembly, namely syscall/js, the default settings in VS Code will trigger error reports like "Build constraints exclude all Go files" in the editor.

Preferences > Settings > Workspace > Go tools env var.

Set the following:

{
    "go.toolsEnvVars": {
        "GOOS": "js",
        "GOARCH": "wasm"
    }
}

Ctrl + Shift + P > Reload Window.

GoLand / Intellij Ultimate

Configuring GoLand for WebAssembly (Wasm) projects

# Packages

No description provided by the author