go-wasm-experiments

module
v0.0.0-...-545da06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: MIT

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

Directories

Path Synopsis
cmd
serve
A basic HTTP server.
A basic HTTP server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL