Archives For November 30, 1999

Go programming language announced the new 1.22 release this Tuesday! Here’s the new features and how to install guide for Ubuntu & other Linux.

What’s New in Go 1.22:

  • The variables declared by a “for” loop were created once and updated by each iteration. In new 1.22 release, each iteration of the loop creates new variables, to avoid accidental sharing bugs.
  • “For” loops may now range over integers.
  • Commands in workspaces can now use a vendor directory containing the dependencies of the workspace.
  • go get is no longer supported outside of a module in the legacy GOPATH mode
  • 2% ~ 14% improvement from enabling PGO.
  • Requires the final point release of Go 1.20 or later for bootstrap
  • New math/rand/v2 package
  • New go/version package
  • See release note for more details.

Continue Reading…