cmd/go: document file language version semantics in go help buildconstraint
#68161
Labels
Documentation
Issues describing a change to documentation.
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Discussing with @matloob, we were surprised that https://go.dev/doc/toolchain was the best (only?) canonical documentation we could find for the fact that
//go:build go1.22
is not just a build constraint, but also affects the language version within that file.We should make this more apparent in documentation, by including this information in (at least)
go help buildconstraint
. It may also be worth mentioning this ingo.dev/ref/mod
, or other go command documentation.The text was updated successfully, but these errors were encountered: