Skip to content

an example of setting up TinyGo via VSCode's devcontainer

License

Notifications You must be signed in to change notification settings

sago35/tinygo-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

an example of setting up TinyGo via VSCode's devcontainer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published