- // FileVersions maps a file's position base to the file's Go version.
- // If the file doesn't specify a version and Config.GoVersion is not
- // given, the reported version is the zero version (Major, Minor = 0, 0).
- FileVersions map[*syntax.PosBase]Version
+ // FileVersions maps a file to its Go version string.
+ // If the file doesn't specify a version, the reported
+ // string is Config.GoVersion.
+ // Version strings begin with “go”, like “go1.21”, and
+ // are suitable for use with the [go/version] package.
+ FileVersions map[*syntax.PosBase]string