toolchain

command module
v0.0.0-...-0dfb233 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 3 Imported by: 0

README

$ docker run --rm -v "$(pwd)":/app -w /app golang:1.21 go run main.go
Go Version: go1.21.13
$ docker run --rm -v "$(pwd)":/app -w /app golang:1.22 go run main.go
Go Version: go1.22.9
$ docker run --rm -v "$(pwd)":/app -w /app -e GOTOOLCHAIN=auto golang:1.21 go run main.go
Go Version: go1.22.1
$ docker run --rm -v "$(pwd)":/app -w /app -e GOTOOLCHAIN=go1.21.3 golang:1.22 go run main.go
Go Version: go1.21.3

go directive 1.22

$ docker run --rm -v "$(pwd)":/app -w /app -e GOTOOLCHAIN=go1.21.3 golang:1.22 go run main.go
go: downloading go1.21.3 (linux/arm64)
go: go.mod requires go >= 1.22 (running go 1.21.3; GOTOOLCHAIN=go1.21.3)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL