Downgrade Go version requirement to 1.20 (#2197)

As part of the upgrade to Go 1.21, the Go toolchain now requires the
`go` directive to match the maximum Go version in use in dependencies.

This leads to any transitive dependency on this library to result in a
requirement of the consuming project moving to Go 1.21.

Although in a lot of cases this may not be as problematic, it forces
consumers to migrate, which we don't need to do in this case.

This also requires we bump jwt and httpexpect dependencies, as they've
downgraded, too.
This commit is contained in:
Jamie Tanna 2023-09-08 17:08:16 +01:00 committed by GitHub
parent b7c2aba67e
commit cf3808ae65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/kataras/iris/v12
go 1.21
go 1.20
retract [v12.0.0, v12.1.8] // Retract older versions as only latest is to be depended upon. Please update to @latest