<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go 1.22 on PlumePHP</title><link>https://plumephp.com/tags/go-1.22/</link><description>Recent content in Go 1.22 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 20 Jan 2024 09:30:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/go-1.22/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 1.22 新特性：range over integers 和 math/rand/v2</title><link>https://plumephp.com/81-go-1.22-features/</link><pubDate>Sat, 20 Jan 2024 09:30:00 +0800</pubDate><guid>https://plumephp.com/81-go-1.22-features/</guid><description>&lt;h1 id="go-122-新特性range-over-integers-和-mathrandv2"&gt;Go 1.22 新特性：range over integers 和 math/rand/v2&lt;/h1&gt;
&lt;p&gt;2024 年 2 月，Go 1.22 正式发布。这是 Go 语言进入第 15 个年头后的第一份&amp;quot;新年礼物&amp;quot;。&lt;/p&gt;
&lt;p&gt;如果你以为这又是一个&amp;quot;修修 bug、调调性能&amp;quot;的小版本，那你可能会大吃一惊。Go 1.22 带来了几个让社区讨论热烈的改动——&lt;code&gt;for range&lt;/code&gt; 终于支持整数了，&lt;code&gt;math/rand&lt;/code&gt; 终于有了 v2 版本，&lt;code&gt;net/http.ServeMux&lt;/code&gt; 终于能按 HTTP Method 路由了。&lt;/p&gt;</description></item></channel></rss>