type goVersion … // asGoVersion returns v as a goVersion (e.g., "go1.20.1" becomes "go1.20"). // If v is not a valid Go version, the result is the empty string. func asGoVersion(v string) goVersion { … } // isValid reports whether v is a valid Go version. func (v goVersion) isValid() bool { … } // cmp returns -1, 0, or +1 depending on whether x < y, x == y, or x > y, // interpreted as Go versions. func (x goVersion) cmp(y goVersion) int { … } var go1_9 … var go1_13 … var go1_14 … var go1_17 … var go1_18 … var go1_20 … var go1_21 … var go1_22 … var go1_23 … var go_current … // allowVersion reports whether the current effective Go version // (which may vary from one file to another) is allowed to use the // feature version (want). func (check *Checker) allowVersion(want goVersion) bool { … } // verifyVersionf is like allowVersion but also accepts a format string and arguments // which are used to report a version error if allowVersion returns false. func (check *Checker) verifyVersionf(at poser, v goVersion, format string, args ...interface{ … }