Skip to content

johngillott/go-wasm-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published