15

Changes in Recent Go Versions

This chapter is about the changes introduced in the latest Go versions.

First, we will see what has changed about the random number generation capabilities of Go. More specifically, we will talk about rand.Seed().

The remainder of the chapter is about Go 1.21 and Go 1.22, which at the time of writing are the latest Go versions. We should not forget that a programming language is also a piece of software developed by programmers. Therefore, programming languages and compilers are being improved all the time with new functionality, better code generation, code optimizations, and faster operation. We close this chapter by discussing the most important improvements introduced in Go versions 1.21 and 1.22.

We will ...

Get Mastering Go - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.