Go programming language announced the new 1.24 release on 11 February, 2025! Here’s the new features and how to install guide for Ubuntu & other Linux.
What’s New in Go 1.24:
- Fully supports generic type aliases, allows to create a new name for an existing type (support type parameters) without creating a new type.
- New
-tool
flag forgo get
, allowing to add a tool directive to the current module for named packages. - New
tests
analyzer forgo vet
to report common mistakes in test packages. - New set of mechanisms to facilitate FIPS 140-3 compliance.
- Faster and less error-prone
testing.B.Loop
method to perform benchmark iterations. - New
os.Root
type provides the ability to perform filesystem operations within a specific directory. - New
runtime.AddCleanup
finalization mechanism that is more flexible, more efficient, and less error-prone. - New weak package provides weak pointers.
- New crypto/mlkem package implements ML-KEM-768 and ML-KEM-1024.
- New crypto/hkdf, crypto/pbkdf2, and crypto/sha3 packages.
- New experimental testing/synctest package provides support for testing concurrent code.
See the announcement for more changes in Go 1.24.