Go
The Go programming language toolchain, with go and gofmt for building and formatting code.
Usage
{
"features": {
"ghcr.io/hansehart/devcontainer-features/go:2": {}
}
}Version 2.2.0, see the changelog for what changed.
Options
| Option | Default | Description |
|---|---|---|
version | latest | Channel (latest), a minor line (major.minor), or an exact version (major.minor.patch). |
stateDir | If set, puts this feature's data at this path, which must be inside the remote user's home. Mount a volume there to persist it across rebuilds. |
Customizations
Open Secure Software Suite
The hosts the tool reaches:
| Host | Ports | Secret | For |
|---|---|---|---|
proxy.golang.org | 443 | Modules go downloads | |
sum.golang.org | 443 | Checksums go verifies modules against |
The variables that set its defaults:
| Variable | Value | For |
|---|---|---|
GOTOOLCHAIN | local | With local, toolchains a project asks for install on explicit request |
GOPATH | ${stateDir} | Go's installed tools and modules in the state dir |
GOCACHE | ${stateDir}/cache | Go's build cache in the state dir |
VS Code
The extensions it installs: