Chapter 6. Changes in Go Toolset
Go Toolset has been updated from version 1.17 to 1.18.4 on RHEL 7, RHEL 8, and RHEL 9.
Notable changes include:
- The introduction of generics while maintaining backwards compatibility with earlier versions of Go.
- A new fuzzing library .
-
New
debug/buildinfoandnet/netippackages. -
The
go gettool no longer builds or installs packages. Now, it only handles dependencies ingo.mod. -
If the main module’s
go.modfile specifiesgo 1.17or higher, thego mod downloadcommand used without any additional arguments only downloads source code for the explicitly required modules in the main module’sgo.modfile. To also download source code for transitive dependencies, use thego mod download allcommand. -
The
go mod vendorsubcommand now supports a-ooption to set the output directory. -
The
go mod tidycommand now retains additional checksums in thego.sumfile for modules whose source code is required to verify that only one module in the build list provides each imported package. This change is not conditioned on the Go version in the main module’sgo.modfile.