Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 1.54 KB

README.md

File metadata and controls

75 lines (50 loc) · 1.54 KB

tinygo-devcontainer

This is an example of setting up TinyGo via VSCode's devcontainer.

How to use (with VSCode)

First docker pull tinygo/tinygo-dev as it is used internally.

$ docker pull tinygo/tinygo-dev

Install Visual Studio Code Remote - Containers.

Enable remote container with Remote-Containers: Reopen in Container

examples/wasm

The examples in examples/wasm are very easy to execute.

$ cd ./examples/wasm/
$ make slices
$ go run ./server.go

lsp not working properly

  1. TinyGo target and select wasm
  2. Add GOOS/GOARCH to ./.vscode/settings.json
  3. Reload window (>Developer: Reload Window)
{
    "go.toolsEnvVars": {
        "GOOS": "js",
        "GOARCH": "wasm",
        "GOROOT": "...",
        "GOFLAGS": "...",
    }
}

The following PRs attempt to improve the situation.

Internals

The following are used internally

The configuration file can be found at

LICENSE

MIT

Author

sago35 - [email protected]