Golang 1.21 brings built-in functions, profile-guided optimization

June 23, 2023

Go 1.21, the latest update of Google’s Go programming language, is now available as a release candidate. The new version adds built-in functions—min, max, and clear—and makes profile-guided optimization (PGO) generally available. WebAssembly accommodations also are highlighted.

The min and max functions compute the smallest or largest value, respectively, of a fixed number of arguments or ordered types. There must be at least one argument. The clear function takes an argument of map, slice, or type parameter type and deletes or zeroes out all of the elements.

To read this article in full, please click here

InfoWorld 

Article Categories:
Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Generated by Feedzy