All you have to know about Go 1.24

Today, the Go 1.24 GO 1.24 is enthusiastic, which you can get by visiting Download page.
Go 1.24 comes with many improvements on Go 1.23. Here are some prominent changes. For the full menu, see Issue notes.
Language changes
Go 1.24 now completely support Type of borrowed names general type: The name of the borrowed name may be determined like the specified type. Look Language specifications For more details.
Performance improvements
Many performance improvements in public expenditures have decreased by 2-3 % on average through a set of representative standards. These improvements include a new designer map
Implementation is based on Swiss tables, allocating the most efficient memory for small organisms, and new time implementation of time.
- the
go
ComMand now provides a mechanism for tracking the consequences of the style unit tracking tool. Usego get -tool
To add atool
Guidance to the current stereotype. Usego tool [tool name]
To run the tools announced withtool
Guidance. Read more on Go to the leadership In version notes. - New
test
Analystgo vet
Sub -reporting of common errors in test ads, beating, standards, examples of test packages. Read more on veterinarian In version notes.
Standard library additions
- The standard library now includes A new set of mechanisms to facilitate FIPS 140-3 compliance. Applications do not require any changes in the source code to use the new mechanisms for approved algorithms. Read more on FIPS 140-3 Compliance In version notes. Regardless of FIPS 140, many beams were previously in x/Crypto The stereotype is now available in Standard.
- The standards may now be used as the fastest and less vulnerable
testing.B.Loop
A way to perform standard repetitions such asfor b.Loop() { ... }
Instead of the typical episode structures that includeb.N
Lovefor range b.N
. Read more on New standard function In version notes. - New
os.Root
Type provides the ability to carry out isolated file system operations under a specific guide. Read more on The arrival of the file system In version notes. - Provides operating time for the new completion mechanism,
runtime.AddCleanup
This is more flexible, more efficient and less vulnerableruntime.SetFinalizer
. Read more on Cleaning In version notes.
Improving webassembly support
Go 1.24 adds new go:wasmexport
Guiders to the Go to Export jobs to the Webassembly host, and supports the creation of the Go as a WASI reactor. Read more on Webassembly In version notes.
Please read Go 1.24 version notes For full and detailed information. Don’t forget to watch the follow -up of the Follow -up Blog that will deepen more in some of the topics mentioned here!
Thanks to everyone who contributed to this version by writing code and documents, reporting errors, sharing comments, and testing the issues of the version. Your efforts have helped ensure that Go 1.24 is as stable as possible. As always, if you notice any problems, please Provide a problem.
Enjoy Go 1.24!
Credits: Junyang Shao, on behalf of the Go team
Photo by Marcus Winkeler on not
This article is available on