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.
Click to show internal directories.
Click to hide internal directories.