New Features & Improvements in Go 1.21

https://lemmy.world/post/1392543

New Features & Improvements in Go 1.21 - LemmyWorld

Go 1.21 is almost here and as usual, with it is a pile of features and improvements. I’m looking forward to using the new clear function as well as the new slices and maps packages. What about you?

Probably better to link to the official blog post on the subject: Go 1.21 Release Candidate. Previously discussed: programming.dev/post/148216 So many trackers on that Infoworld website! From ublock origin:

https://cdn.permutive.com/f5b3be27-f789-4ef1-8867-37c67da5b361-web.js https://cdn.subscribers.com/assets/subscribers.js https://cmp.infoworld.com/mms/get_site_data?requestUUID=507210d5-035f-4600-998c-2e04bdd36f87&account_id=146&href=https%3A%2F%2Fwww.infoworld.com%2Farticle%2F3700770%2Fgolang-121-brings-built-in-functions-profile-guided-optimization.html https://cse.google.com/adsense/search/async-ads.js https://d2zv5rkii46miq.cloudfront.net/0/latest/cmp_shim.js https://js-sec.indexww.com/ht/p/183980-247839449380635.js https://pixel.staticworld.net/pixel.gif?b=ifw&e=view&t=article&id=3700770&ts=1689252088722&ip=180.249.186.234 https://prd.jwpltx.com/v1/jwplayer6/ping.gif?h=-826564727&e=gab&n=1527670548737048&abc=0&abt=162_ad-iab-viewability_v4%2C128_sendDomainToFeedsOn&aid=LIgcEqx3EeidKgpVuA4vVw&amp=0&ask=LxK3nuOJ&at=0&c=1&ccp=0&cp=0&d=1&eb=0&ed=6&emi=1aw7wid1w350&i=0&id=mB03vNtO&lid=mzhjwee2bigq&lsa=read&mt=1&pbd=1&pbr=1&pgi=1gudp6v4xzzm&ph=1&pid=8yHZorDV&pii=0&pl=226&plc=1&pli=jbndzb17fpcr&pp=hlsjs&ppm=VOD&prc=1&ps=4&pss=1&pt=Golang%201.21%20brings%20built-in%20functions%2C%20profile-guided%20optimization%20%7C%20InfoWorld&pu=https%3A%2F%2Fwww.infoworld.com%2Farticle%2F3700770%2Fgolang-121-brings-built-in-functions-profile-guided-optimization.html&pv=8.27.1&pyc=0&s=0&sdk=0&stc=1&stpe=1&t=How%20to%20set%20up%20a%20Django%20project%20in%20Python%20%7C%20Pt.%201&tv=3.42.2&vb=1&vi=1&vl=90&wd=401&abpr=0&ati=0&fls=0&lae=ana-jwplayer6&pbs=0&pcp=0&prs=idle&prsd=-1&ti=0&tps=0&ubc=0&vti=0&sa=1689252088414 https://prd.jwpltx.com/v1/jwplayer6/ping.gif?h=1141266302&e=e&n=4879731232622354&abc=0&abt=162_ad-iab-viewability_v4%2C128_sendDomainToFeedsOn&aid=LIgcEqx3EeidKgpVuA4vVw&amp=0&ask=LxK3nuOJ&at=1&c=1&ccp=0&cp=0&d=1&eb=0&ed=6&emi=nlupv81l0sk3&i=0&id=mB03vNtO&lid=mzhjwee2bigq&lsa=read&mt=1&pbd=1&pbr=1&pgi=1unvv5b1hvn6&ph=1&pid=8yHZorDV&pii=0&pl=226&plc=1&pli=el7v3wl5ojr7&pp=hlsjs&ppm=VOD&prc=1&ps=4&pss=1&pt=Golang%201.21%20brings%20built-in%20functions%2C%20profile-guided%20optimization%20%7C%20InfoWorld&pu=https%3A%2F%2Fwww.infoworld.com%2Farticle%2F3700770%2Fgolang-121-brings-built-in-functions-profile-guided-optimization.html&pv=8.27.1&pyc=0&s=0&sdk=0&stc=1&stpe=1&t=How%20to%20set%20up%20a%20Django%20project%20in%20Python%20%7C%20Pt.%201&tv=3.42.2&vb=1&vi=1&vl=90&wd=401&ab=1&bpv=7.3.6&cae=0&cb=0&cdid=bottomRightPlayer&cme=1&dd=0&dnt=1&fed=xAPwXviG&flc=0&fv=&ga=0&lng=en&mk=hls&mu=https%3A%2F%2Fcdn.jwplayer.com%2Fmanifests%2FmB03vNtO.m3u8&pbc=0&pd=2&pdr=&plng=en&plt=1400&pni=0&po=0&pogt=Golang%201.21%20brings%20built-in%20functions%2C%20profile-guided%20optimization&sp=0&st=210&sa=1689252089738 https://prd.jwpltx.com/v1/jwplayer6/ping.gif?h=98703216&e=ana&n=2764551966757316&aid=LIgcEqx3EeidKgpVuA4vVw&emi=nlupv81l0sk3&id=mB03vNtO&pli=el7v3wl5ojr7&pv=8.27.1&tv=3.42.2&sa=1689252089752 https://s.ntv.io/serve/load.js https://sb.scorecardresearch.com/beacon.js https://securepubads.g.doubleclick.net/tag/js/gpt.js https://ssl.p.jwpcdn.com/player/v/8.27.1/googima.js https://www.googletagmanager.com/gtm.js?id=GTM-WR6LD2P https://www.infoworld.com/ads/tso?localeId=0 https://www.infoworld.com/article/3700770/golang-121-brings-built-in-functions-profile-guided-optimization.html https://www.infoworld.com/www/js/ads/jquery.lazyload-ad.js https://www.infoworld.com/www/js/analytics/brandAnalytics.js https://www.infoworld.com/www/js/analytics/sp_analytics.js
Go 1.21 Release Candidate - The Go Programming Language

Go 1.21 RC brings language improvements, new standard library packages, PGO GA, backward and forward compatibility in the toolchain and faster builds.