...
1# Modules were introduced in Go 1.11, but for various reasons users may
2# decide to declare a (much!) older go version in their go.mod file.
3# Modules with very old versions should not be rejected, and should have
4# the same module-graph semantics as in Go 1.11.
5
6cp go.mod go.mod.orig
7go mod tidy
8cmp go.mod go.mod.orig
9
10-- go.mod --
11module example.com/legacy/go1
12
13go 1.0
14
15require golang.org/x/text v0.3.0
16-- main.go --
17package main
18
19import _ "golang.org/x/text/language"
20
21func main() {}
View as plain text