{"id":10008038,"date":"2023-07-05T15:00:04","date_gmt":"2023-07-05T07:00:04","guid":{"rendered":"https:\/\/ityet.com\/?p=10008038"},"modified":"2023-07-05T15:00:04","modified_gmt":"2023-07-05T07:00:04","slug":"go-%e5%9b%a2%e9%98%9f%e5%b0%86%e4%bf%ae%e6%94%b9-for-%e5%be%aa%e7%8e%af%e5%8f%98%e9%87%8f%e7%9a%84%e8%af%ad%e4%b9%89%ef%bc%8cgo1-21-%e6%96%b0%e7%89%88%e6%9c%ac%e5%8d%b3%e5%8f%af%e4%bd%93%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008038","title":{"rendered":"Go \u56e2\u961f\u5c06\u4fee\u6539 for \u5faa\u73af\u53d8\u91cf\u7684\u8bed\u4e49\uff0cGo1.21 \u65b0\u7248\u672c\u5373\u53ef\u4f53\u9a8c\uff01"},"content":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u714e\u9c7c\u3002<\/p>\n<p>\u4e4b\u524d\u6709\u63d0\u5230 Go for \u5faa\u73af\u53d8\u91cf\u7684\u95ee\u9898\uff0c\u8bb8\u591a\u9762\u8bd5\u9898\u548c\u6cc4\u9732\u4e0e\u6b64\u6709\u5173\u3002<\/p>\n<p>Russ Cox\uff08\u4e0b\u79f0\uff1arsc\uff09\u751a\u81f3\u4e00\u5ea6\u8868\u793a\u4ed6\u4e00\u76f4\u5728\u7814\u7a76\u8fd9\u4e2a\u95ee\u9898\uff0c\u8ba4\u4e3a\u5f53\u524d\u8bed\u4e49\u7684\u4ee3\u4ef7\u662f\u5f88\u5927\u7684\uff0c\u60f3\u770b\u770b\u80fd\u4e0d\u80fd\u8fdb\u884c\u53d8\u66f4\u3002<\/p>\n<p>\u7ecf\u8fc7 Go1 \u5411\u524d\u517c\u5bb9\u6027\u548c\u5411\u540e\u517c\u5bb9\u6027\u63d0\u6848\u7684\u94fa\u57ab\uff0c\u5faa\u73af\u53d8\u91cf\u7684\u8fd9\u4e2a\u95ee\u9898\u5c06\u5f97\u5230\u89e3\u51b3\u3002\u5728 Go1.21 \u53ef\u4ee5\u8fdb\u884c\u5c1d\u8bd5\u4f7f\u7528\uff0c\u9884\u8ba1 Go1.22 \u5f00\u59cb\u6b63\u5f0f\u53d8\u66f4\u3002<\/p>\n<h2>\u56de\u987e\u95ee\u9898\u73b0\u8c61<\/h2>\n<h3>\u7b2c\u4e00\u4e2a\u4f8b\u5b50<\/h3>\n<p>\u5728 Go \u8bed\u8a00\u4e2d\uff0c\u6211\u4eec\u5199 for \u8bed\u53e5\u65f6\u6709\u65f6\u4f1a\u51fa\u73b0\u8fd0\u884c\u548c\u731c\u60f3\u7684\u7ed3\u679c\u4e0d\u4e00\u81f4\u3002\u4f8b\u5982\u4ee5\u4e0b\u7b2c\u4e00\u4e2a\u6848\u4f8b\u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"go\">var all []*Item\nfor _, item := range items {\n all = append(all, &amp;item)\n}<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u6709\u95ee\u9898\u5417\uff1f\u53d8\u91cf all \u5185\u7684 item \u53d8\u91cf\uff0c\u5b58\u50a8\u8fdb\u53bb\u7684\u662f\u4ec0\u4e48\uff1f\u662f\u6bcf\u6b21\u5faa\u73af\u7684 item \u503c\uff0c\u6bcf\u6b21\u90fd\u4e0d\u4e00\u6837\uff0c\u5bf9\u5417\uff1f<\/p>\n<p>\u5b9e\u9645\u4e0a\u5728 for \u5faa\u73af\u65f6\uff0c\u6bcf\u6b21\u5b58\u5165\u53d8\u91cf all \u7684\u90fd\u662f\u76f8\u540c\u7684 item\uff0c\u4e5f\u5c31\u662f\u6700\u540e\u4e00\u4e2a\u5faa\u73af\u7684 item \u503c\u3002\u8fd9\u662f Go \u9762\u8bd5\u91cc\u7ecf\u5e38\u51fa\u73b0\u7684\u9898\u76ee\uff0c\u7ed3\u5408 goroutine \u66f4\u98ce\u9a9a\uff0c\u6bd5\u7adf\u8fd8\u4f1a\u5b58\u5728\u4e71\u5e8f\u6267\u884c\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u9700\u8981\u628a\u7a0b\u5e8f\u6539\u5199\u6210\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"go\">var all []*Item\nfor _, item := range items {\n item := item\n all = append(all, &amp;item)\n}<\/code><\/pre>\n<p>\u8981\u91cd\u65b0\u58f0\u660e\u4e00\u4e2a\u5c40\u90e8\u53d8\u91cf item \u53d8\u91cf\uff0c\u628a for \u5faa\u73af\u7684 item \u53d8\u91cf\u7ed9\u5b58\u50a8\u4e0b\u6765\uff0c\u518d\u8ffd\u52a0\u8fdb\u53bb\u3002<\/p>\n<h2>\u7b2c\u4e8c\u4e2a\u4f8b\u5b50<\/h2>\n<p>\u63a5\u4e0b\u6765\u662f\u7b2c\u4e8c\u4e2a\u6848\u4f8b\u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"go\">var prints []func()\nfor _, v := range []int{1, 2, 3} {\n prints = append(prints, func() { fmt.Println(v) })\n}\nfor _, print := range prints {\n print()\n}<\/code><\/pre>\n<p>\u8fd9\u6bb5\u7a0b\u5e8f\u7684\u8f93\u51fa\u7ed3\u679c\u662f\u4ec0\u4e48\uff1f\u6ca1\u6709 &#038; \u53d6\u5730\u5740\u7b26\uff0c\u662f\u8f93\u51fa 1\uff0c2\uff0c3 \u5417\uff1f<\/p>\n<p>\u7ed3\u679c\u7a0b\u5e8f\u4e00\u8fd0\u884c\uff0c\u8f93\u51fa\u7ed3\u679c\u662f 3\uff0c3\uff0c3\u3002\u8fd9\u53c8\u662f\u4e3a\u4ec0\u4e48\uff1f<\/p>\n<p>\u95ee\u9898\u7684\u91cd\u70b9\u4e4b\u4e00\uff1a\u5173\u6ce8\u5230\u95ed\u5305\u51fd\u6570\uff0c\u5b9e\u9645\u4e0a\u6240\u6709\u95ed\u5305\u90fd\u6253\u5370\u7684\u662f\u76f8\u540c\u7684 v\uff0c\u4e5f\u5c31\u662f\u8f93\u51fa 3\uff0c\u539f\u56e0\u662f\u5728 for \u5faa\u73af\u7ed3\u675f\u540e\uff0c\u6700\u540e v \u7684\u503c\u88ab\u8bbe\u7f6e\u4e3a\u4e86 3\uff0c\u4ec5\u6b64\u800c\u5df2\u3002<\/p>\n<p>\u5982\u679c\u60f3\u8981\u8fbe\u5230\u9884\u671f\u7684\u6548\u679c\uff0c\u4f9d\u7136\u662f\u4f7f\u7528\u4e07\u80fd\u7684\u518d\u8d4b\u503c\u3002\u6539\u5199\u540e\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"go\">for _, v := range []int{1, 2, 3} {\n  v := v\n  prints = append(prints, func() { fmt.Println(v) })\n }<\/code><\/pre>\n<p>\u589e\u52a0 <code>v := v<\/code> \u8bed\u53e5\uff0c\u7a0b\u5e8f\u8f93\u51fa\u7ed3\u679c\u4e3a 1\uff0c2\uff0c3\u3002\u4ed4\u7ec6\u7ffb\u7ffb\u4f60\u5199\u8fc7\u7684 Go \u5de5\u7a0b\uff0c\u662f\u4e0d\u662f\u90fd\u5f88\u719f\u6089\uff1f\u5c31\u8fd9\u6539\u9020\u65b9\u6cd5\uff0c\u8d62\u4e86\u3002<\/p>\n<p>\u5c24\u5176\u662f\u914d\u5408\u4e0a Goroutine \u7684\u5199\u6cd5\uff0c\u5f88\u591a\u540c\u5b66\u4f1a\u66f4\u5bb9\u6613\u5728\u6b64\u7ffb\u8f66\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<h3>GOEXPERIMENT=loopvar<\/h3>\n<p>\u5728 Go1.21 \u7684\u65b0\u7248\u672c\u8d77\uff0c\u6211\u4eec\u53ef\u4ee5\u5f00\u542f <code>GOEXPERIMENT=loopvar<\/code> \u6765\u6784\u5efa Go \u7a0b\u5e8f\uff0c\u6765\u4f53\u9a8c\u4e0a\u9762\u63d0\u5230\u7684 for \u5faa\u73af\u53d8\u91cf\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6784\u5efa\u547d\u4ee4\uff1a<\/p>\n<pre><code>GOEXPERIMENT=loopvar go install my\/program\nGOEXPERIMENT=loopvar go build my\/program\nGOEXPERIMENT=loopvar go test my\/program\nGOEXPERIMENT=loopvar go test my\/program -bench=.\n...<\/code><\/pre>\n<p><strong>\u9884\u8ba1\u5728 Go1.22 \u8d77\uff0c\u65b0\u7684 for \u5faa\u73af\u8bed\u4e49\uff0c\u5c06\u4f1a\u5728 go.mod \u6587\u4ef6\u4e2d\u7684 go \u884c\uff08\u7248\u672c\u58f0\u660e\uff09\u5927\u4e8e\u7b49\u4e8e Go1.22 \u4e0b\u9ed8\u8ba4\u5e94\u7528\u3002<\/strong><\/p>\n<p>\u6211\u4eec\u5bf9\u5e94\u5230\u4e0a\u8ff0\u7684\u7b2c\u4e8c\u4e2a\u4f8b\u5b50\uff0c\u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c\u5c06\u53d1\u751f\u5982\u4e0b\u6539\u53d8\uff1a<\/p>\n<pre><code>$ go run demo.go                        \n3\n3\n3\n$ GOEXPERIMENT=loopvar gotip run demo.go\n1\n2\n3<\/code><\/pre>\n<p>\u4ee5\u540e\u5c31\u4e0d\u518d\u9700\u8981\u5199 <code>v := v<\/code> \u8bed\u53e5\u4e86\u3002<\/p>\n<h3>\u6a21\u5757\u7248\u672c\u63a7\u5236\u5f00\u5173<\/h3>\n<p>go.mod \u65b9\u9762\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u7167\u4ee5\u4e0b\u6848\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043971792\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u50cf\u4e0a\u56fe\u7684\u914d\u7f6e\uff0cGo 1.30 \u6216\u66f4\u9ad8\u7248\u672c\u5c06\u4f1a\u6bcf\u6b21\u8fed\u4ee3\u53d8\u91cf\uff08\u4e5f\u5c31\u662f\u65b0\u7684 for \u5faa\u73af\u8bed\u4e49\uff09\uff0c\u800c\u65e9\u671f Go \u7248\u672c\u7684\u5c06\u6bcf\u6b21\u5faa\u73af\u53d8\u91cf\uff0c\u4e5f\u5c31\u662f go.mod \u7684 Go \u7248\u672c\u63a7\u5236\u4e86\u65b0\u7279\u6027\u7684\u8bed\u4e49\uff0c\u4e0d\u540c modules \u90fd\u53ef\u80fd\u4f1a\u56e0\u6b64\u4e0d\u4e00\u6837\u3002<\/p>\n<p>\u5982\u6b64\u4e00\u6765\u4e0a\u8ff0\u63d0\u5230\u7684 for \u5faa\u73af\u95ee\u9898\u90fd\u4f1a\u5728\u4e00\u5b9a\u8303\u56f4\uff08\u7248\u672c\uff09\u5185\u88ab\u89e3\u51b3\u3002<\/p>\n<h2>\u67e5\u770b\u5f71\u54cd\u8303\u56f4<\/h2>\n<p>\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\u8fdb\u884c\u6784\u5efa\uff1a<\/p>\n<pre><code>$ go build -gcflags=all=-d=loopvar=2 cmd\/go\n...\nmodload\/import.go:676:7: loop variable d now per-iteration, stack-allocated\nmodload\/query.go:742:10: loop variable r now per-iteration, heap-allocated<\/code><\/pre>\n<p>\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\u5bf9\u5e94\u7684\u6587\u4ef6\u3001\u884c\u6570\u3001\u53d8\u91cf\u3002\u77e5\u9053\u76ee\u524d\u5bf9\u5e94\u7684\u662f\u8fed\u4ee3\u8fd8\u662f\u5faa\u73af\uff0c\u53d8\u91cf\u5206\u914d\u5728\u54ea\u91cc\u3002\u4e0d\u7528\u9760\u518d\u7ffb\u7248\u672c\u53f7\u518d\u770b\u518d\u731c\u3002<\/p>\n<h2>\u5b9e\u9645\u5e94\u7528\u5b9e\u9a8c<\/h2>\n<p>\u5728 2023 \u5e74 5 \u6708\u521d\u8d77\uff0cGoogle \u4e00\u76f4\u5728\u5185\u90e8\u4f7f\u7528\u65b0\u7684 for \u5faa\u73af\u7684\u65b0\u8bed\u4e49\u3002\u622a\u6b62\u76ee\u524d\u4e3a\u6b62\uff0c\u6ca1\u6709\u62a5\u544a\u4efb\u4f55\u65b0\u95ee\u9898\u3002<\/p>\n<p>\u53e6\u5916\u8fd8\u5728 Kubernetes \u4e2d\u5c1d\u8bd5\u4e86\u65b0\u7684 Go1.21 \u7248\u672c\u548c for \u5faa\u73af\u8bed\u4e49\u6d4b\u8bd5\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043971793\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u5c06 Kubernetes \u4ece Go 1.20 \u66f4\u65b0\u5230 Go 1.21 \u65f6\uff0c\u53d1\u73b0\u4e86 3 \u4e2a\u65b0\u5931\u8d25\u7684\u6d4b\u8bd5\u3002\u800c for \u5faa\u73af\u53d8\u91cf\u7684\u8bed\u4e49\u66f4\u6539\uff0c\u5219\u9020\u6210\u4e86 2 \u4e2a\u65b0\u7684\u5931\u8d25\u3002\u4e0e\u666e\u901a\u7248\u672c\u66f4\u65b0\u76f8\u6bd4\uff0cGo \u5b98\u65b9\u56e2\u961f\u8ba4\u4e3a\u5e76\u4e0d\u662f\u4e00\u4e2a\u91cd\u5927\u7684\u65b0\u8d1f\u62c5\u3002<\/p>\n<p>\u7efc\u5408\u8ba4\u4e3a\u8fd9\u4e0d\u662f\u4e00\u4e2a\u5927\u53d8\u52a8\uff0c\u4e14\u5f71\u54cd\u9762\u53ef\u4ee5\u63a7\u5236\u3002\u6240\u4ee5\u53ef\u53d8\uff01<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728\u672c\u6b21 Go \u65b0\u7248\u672c\u66f4\u65b0\u4e2d\uff0cGo \u5b98\u65b9\u6838\u5fc3\u56e2\u961f\u7ec8\u4e8e\u89e3\u51b3\u4e86\u8fd9\u4e2a\u5341\u5e74\u4e4b\u75db\u7684\u95ee\u9898\u3002\u524d\u9762\u94fa\u57ab\u4e86\u771f\u7684\u662f\u975e\u5e38\u4e45\u4e86\uff0c\u8fd9\u4e48\u591a\u5e74\uff0c\u4e3a\u4e86\u517c\u5bb9\u6027\u8fd8\u51fa\u53f0\u4e86\u51e0\u4e2a\u517c\u5bb9\u6027\u63d0\u6848\u3002\u771f\u7684\u662f\u7528\u5fc3\u826f\u82e6\uff01<\/p>\n<p>\u5927\u5bb6\u8981\u5173\u6ce8\u4e00\u4e0b\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u5728 Go1.21 \u63d0\u524d\u628a\u5f00\u5173\u5f00\u8d77\u6765\uff0c\u770b\u770b\u662f\u5426\u6709\u5f71\u54cd\u3002\u5982\u679c\u6ca1\u6709\u5f71\u54cd\uff0c\u90a3\u5c31\u662f\u6700\u597d\u7684\u4e86\u3002\u5982\u679c\u6709\u5f71\u54cd\uff0c\u90a3\u4e48\u9700\u8981\u6ce8\u610f\u5728\u540e\u7eed\u5347\u7ea7\u65b0\u7248\u672c\uff08Go1.22 \u65f6\uff09\uff0c\u8981\u63a7\u5236\u597d go.mod \u4e2d\u7684 Go \u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>\u5728\u4e0b\u4e2a\u7248\u672c\uff08Go1.21\/Go1.22\uff09\u8d77\uff0cGo \u4ee3\u7801\u7684 <code>v := v<\/code> \u8bed\u53e5\u5c06\u4f1a\u9010\u6e10\u53d8\u5c11\u3002\u53ef\u80fd\u662f\u4e2a\u597d\u4e8b\uff1f<\/p>\n<p>\u9762\u8bd5\u5b98\u4eec\u4e5f\u8bf7\u8bb0\u5f97\u4fee\u6539\u4e00\u4e0b\u4f60\u7684\u9898\u5e93\u4e86\u3002<\/p>\n<blockquote><p>\u6587\u7ae0\u6301\u7eed\u66f4\u65b0\uff0c\u53ef\u4ee5\u5fae\u4fe1\u641c\u3010\u8111\u5b50\u8fdb\u714e\u9c7c\u4e86\u3011\u9605\u8bfb\uff0c\u672c\u6587 <strong>GitHub<\/strong> <a href=\"https:\/\/link.segmentfault.com\/?enc=x61OwdNQnDrBGw%2F%2Fj%2Fxfyg%3D%3D.4g0o%2F8WHj%2FJl8EyBXnHjwtjGPrQcxriqKZlVlZmW6P0%3D\" rel=\"nofollow\">github.com\/eddycjy\/blog<\/a> \u5df2\u6536\u5f55\uff0c\u5b66\u4e60 Go \u8bed\u8a00\u53ef\u4ee5\u770b <a href=\"https:\/\/link.segmentfault.com\/?enc=XNF6nahbRfruPy2lqcLDSQ%3D%3D.Ea9n7HS%2BSfzXdFaRhRWBjdVjs7p9ahyiFCXSY5B4U5jC6i4eCGJUVqhK7URb50ji\" rel=\"nofollow\">Go \u5b66\u4e60\u5730\u56fe\u548c\u8def\u7ebf<\/a>\uff0c\u6b22\u8fce Star \u50ac\u66f4\u3002<\/p><\/blockquote>\n<h3>Go \u56fe\u4e66\u7cfb\u5217<\/h3>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=tu1GnHK6ILOs1kUwtpklzg%3D%3D.PN4rpLSjHZQv%2FW3El%2FcZgm4iamkouDFWrpe8vcR1dXRCwgpG0wnhKql%2BNBF2%2Bfa3\" rel=\"nofollow\">Go \u8bed\u8a00\u5165\u95e8\u7cfb\u5217\uff1a\u521d\u63a2 Go \u9879\u76ee\u5b9e\u6218<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=t7q0vK80aaJqnELqsFZXAw%3D%3D.qw%2FIaHzk1VJwQ7XsuKOygtsBsdWo%2FVMJxYhPIqeHCYo%3D\" rel=\"nofollow\">Go \u8bed\u8a00\u7f16\u7a0b\u4e4b\u65c5\uff1a\u6df1\u5165\u7528 Go \u505a\u9879\u76ee<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=Qx6S4zGpxDbb46LTAXOUHg%3D%3D.g3tK%2FKJK581Ugn5OggWbRKlHAlFhzaOzAExVln66ppI%3D\" rel=\"nofollow\">Go \u8bed\u8a00\u8bbe\u8ba1\u54f2\u5b66\uff1a\u4e86\u89e3 Go \u7684\u4e3a\u4ec0\u4e48\u548c\u8bbe\u8ba1\u601d\u8003<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=QpbzFhbAW0Ij7ePtwFG59A%3D%3D.UUqP%2B%2FrakBGcRMopBKW9uEr%2F7XaOwj0BpnSaB94DtU8%3D\" rel=\"nofollow\">Go \u8bed\u8a00\u8fdb\u9636\u4e4b\u65c5\uff1a\u8fdb\u4e00\u6b65\u6df1\u5165 Go \u6e90\u7801<\/a><\/li>\n<\/ul>\n<h4>\u63a8\u8350\u9605\u8bfb<\/h4>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=seeTxeOBpXGWp3yY4rkfdQ%3D%3D.FkzRbVg3Hid5GUQ7D%2FdlL7GhW8%2Bxie%2Fa6YSo5ayAXLay%2B4jBAw%2BqqUMIWkwq4R3QeoYTOoas1PJfok6sRPqsaQ%3D%3D\" rel=\"nofollow\">Go1.21 \u901f\u89c8\uff1a\u65b0\u5185\u7f6e\u51fd\u6570 clear\u3001min\u3001max \u548c\u65b0\u6807\u51c6\u5e93\u5305 cmp\uff01<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=U3GfeduV4sRrL9ZorwnJEQ%3D%3D.fZrsFBwnoMmBzhrvSin7U4R27NjOjmOMvGpOwD5c6PP1ObOFepzDz8AN3feBUrXX3tnNkd8NLgxa%2FEpQToN0FQ%3D%3D\" rel=\"nofollow\">Go1.21 \u901f\u89c8\uff1a\u8fc7\u4e86\u4e00\u5e74\u534a\uff0cslices\u3001maps \u6cdb\u578b\u5e93\u7ec8\u4e8e\u8981\u52a0\u5165\u6807\u51c6\u5e93\u3002\u3002\u3002<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=22Mikd4Gdu%2BvioQyRUWjZQ%3D%3D.mcmtggdBAaBZuKuiy0GxpvO8iFtbhtIkLy3eDg5qVpSr5VAXh1iaAIlQD9q3pv4Mc486lUEKaTYRiB0cJJgIew%3D%3D\" rel=\"nofollow\">Go1.21 \u901f\u89c8\uff1aGo \u7ec8\u4e8e\u6253\u7b97\u8fdb\u4e00\u6b65\u652f\u6301 WebAssembly \u4e86\u3002\u3002\u3002<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043971790\">https:\/\/segmentfault.com\/a\/1190000043971790<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u714e\u9c7c\u3002 \u4e4b\u524d\u6709\u63d0\u5230 Go for \u5faa\u73af\u53d8\u91cf\u7684\u95ee\u9898\uff0c\u8bb8\u591a\u9762\u8bd5\u9898\u548c\u6cc4\u9732\u4e0e\u6b64\u6709\u5173\u3002 Russ Cox\uff08\u4e0b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008038","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008038"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008038\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}