selected-go-version

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

selected-go-version determines which version of Go is currently selected in the go.mod file.

Note that running this requires that there already be some reasonable Go toolchain version (Go 1.21 or newer) installed on the system. The modern Go toolchain is able to manage its own versions automatically so it shouldn't typically matter which toolchain is used to run this command, and this command should only be used in situations where something other than the Go toolchain itself needs to make a decision about what to use, such as when building container images for testing purposes.

Jump to

Keyboard shortcuts

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