drop Go 1.21 and start using go/version

Needing to awkwardly treat Go versions as if they were semver
is no longer necessary thanks to go/version being in Go 1.22.0 now.
This commit is contained in:
Daniel Martí
2024-02-11 21:26:14 +00:00
committed by pagran
parent d76bc2eb47
commit ad2ecc7f2f
42 changed files with 75 additions and 253 deletions

View File

@@ -16,7 +16,7 @@ binsubstr main$exe 'globalVar' # 'globalType' matches on some, but not all, plat
-- extra/go.mod --
module private.source/extra
go 1.21
go 1.22
-- extra/extra.go --
package extra
@@ -26,7 +26,7 @@ func Func() string {
-- go.mod --
module test/main
go 1.21
go 1.22
// We include an extra module to obfuscate, included in the same original source
// code via a replace directive.