Skip to content

devcontainers-community/features-tinygo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⬅️ Back to feature collection

TinyGo Dev Container Feature

🤏 Installs tinygo from tinygo-org/tinygo

TinyGo is a new compiler for an existing programming language, the Go programming language. TinyGo focuses on compiling code written in Go, but for smaller kinds of systems:

  • The Go compiler and tools (from golang.org) are the reference implementation of the Go programming language. They are primarily intended for server side programming but also used for command line tools and other purposes.
  • The TinyGo project implements the exact same programming language. However, TinyGo uses a different compiler and tools to make it suited for embedded systems and WebAssembly. It does this primarily by creating much smaller binaries and targeting a much wider variety of systems.

Overview | TinyGo

This Dev Container Feature will install TinyGo using the official .deb from the TinyGo Releases page. You are then able to use tinygo as normal! This Feature will also auto-install the TinyGo VS Code extension and the official Golang VS Code extension. Happy Gophering! 🐿️

Usage

Codespaces Devcontainers

To use this feature, all you need to do is add it to your devcontainer.json like this:

// devcontainer.json
"features": {
  "ghcr.io/devcontainers-community/features/tinygo": {}
}

❓ Don't know what this ☝ means? Check out this VS Code blog post.

Options

If you want to specify a specific version of TinyGo, you can do so like this with the version option:

"features": {
  "ghcr.io/devcontainers-community/features/tinygo": {
    "version": "0.29.0"
  }
}