Starting in Go 1.21, the Go command allows for switching between different versions of the Go toolchain based on module requirements, and it automatically selects the appropriate toolchain version. The GOTOOLCHAIN environment setting and the go and toolchain lines in the go.mod file determine the toolchain version used















