Go1.26 Is Worth Paying Attention To
目录
Go 1.26 is scheduled to be released in February 2026. This article shares the changes that the author deems noteworthy.
- The new function supports passing expressions, simplifying pointer creation.
- The overhead of cgo calls is reduced by approximately 30%.
- greenteagc is enabled by default, bringing lower GC overhead.
- TLS enables two post-quantum key exchange mechanisms, SecP256r1MLKEM768 and SecP384r1MLKEM1024, by default.
- The overhead of certain heap allocations smaller than 512 bytes is reduced by up to 30%.
- Two experimental packages add APIs related to forward secrecy and SIMD.