Archives For golang

After 6 months of development, Go language announced new 1.24 release few days ago on Tuesday.

Go 1.24 now fully supports generic type aliases. Type aliases, a concept introduced in Go 1.9, allows to create a new name for an existing type without creating a new type. Previously, it didn’t support type parameters. But this changed in Go 1.24. See more about generic type aliases.

Continue Reading…

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 for go get, allowing to add a tool directive to the current module for named packages.
  • New tests analyzer for go 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.

Continue Reading…