go/src/cmd/go/internal/gover/version.go

const NarrowAllVersion

const DefaultGoModVersion

const DefaultGoWorkVersion

const ExplicitIndirectVersion

const SeparateIndirectVersion

const TidyGoModSumVersion

const GoStrictVersion

const ExplicitModulesTxtImportVersion

// FromGoMod returns the go version from the go.mod file.
// It returns DefaultGoModVersion if the go.mod file does not contain a go line or if mf is nil.
func FromGoMod(mf *modfile.File) string {}

// FromGoWork returns the go version from the go.mod file.
// It returns DefaultGoWorkVersion if the go.mod file does not contain a go line or if wf is nil.
func FromGoWork(wf *modfile.WorkFile) string {}