Skip to Content
ASE

Go

The Go programming language toolchain, with go and gofmt for building and formatting code.

Usage

.devcontainer/devcontainer.json
{
  "features": {
    "ghcr.io/hansehart/devcontainer-features/go:2": {}
  }
}

Version 2.2.0, see the changelog for what changed.

Options

OptionDefaultDescription
versionlatestChannel (latest), a minor line (major.minor), or an exact version (major.minor.patch).
stateDirIf 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:

HostPortsSecretFor
proxy.golang.org443Modules go downloads
sum.golang.org443Checksums go verifies modules against

The variables that set its defaults:

VariableValueFor
GOTOOLCHAINlocalWith local, toolchains a project asks for install on explicit request
GOPATH${stateDir}Go's installed tools and modules in the state dir
GOCACHE${stateDir}/cacheGo's build cache in the state dir

VS Code

The extensions it installs:

On this page