{"id":55656,"date":"2025-08-14T06:54:24","date_gmt":"2025-08-13T22:54:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55656.html"},"modified":"2025-08-14T06:54:24","modified_gmt":"2025-08-13T22:54:24","slug":"go-1-25-0%e5%8f%91%e5%b8%83%ef%bc%9a%e5%ae%b9%e5%99%a8%e6%84%9f%e7%9f%a5%e8%b0%83%e5%ba%a6%e3%80%81%e5%ae%9e%e9%aa%8c%e6%80%a7gc%e4%b8%8ejson-v2%e7%ad%89%e5%a4%9a%e9%a1%b9%e9%9d%a9%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55656.html","title":{"rendered":"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813225422-689d179ee832d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813225423-689d179f56602.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>Go 1.25 \u4e2d\u6587\u4ecb\u7ecd<\/h2>\n<h3>Go 1.25 \u7b80\u4ecb<\/h3>\n<p>\u6700\u65b0\u7684 Go \u53d1\u884c\u7248 1.25 \u4e8e 2025 \u5e74 8 \u6708\u53d1\u5e03&#xff0c;\u8ddd\u79bb Go 1.24 \u5df2\u8fc7\u516d\u4e2a\u6708\u3002\u672c\u6b21\u7248\u672c\u7684\u5927\u90e8\u5206\u6539\u52a8\u96c6\u4e2d\u5728\u5de5\u5177\u94fe\u3001\u8fd0\u884c\u65f6\u548c\u6807\u51c6\u5e93\u7684\u5b9e\u73b0\u4e0a\u3002\u548c\u4ee5\u5f80\u4e00\u6837&#xff0c;\u672c\u6b21\u53d1\u5e03\u9075\u5faa Go 1 \u7684\u517c\u5bb9\u6027\u627f\u8bfa\u3002\u6211\u4eec\u9884\u8ba1\u51e0\u4e4e\u6240\u6709\u7684 Go \u7a0b\u5e8f\u4ecd\u7136\u53ef\u4ee5\u50cf\u4ee5\u524d\u4e00\u6837\u7f16\u8bd1\u5e76\u8fd0\u884c\u3002<\/p>\n<h3>\u8bed\u8a00\u53d8\u66f4<\/h3>\n<p>Go 1.25 \u6ca1\u6709\u5f71\u54cd\u73b0\u6709 Go \u7a0b\u5e8f\u7684\u8bed\u8a00\u53d8\u66f4\u3002\u4f46\u5728\u8bed\u8a00\u89c4\u8303\u4e2d\u79fb\u9664\u4e86&#034;\u6838\u5fc3\u7c7b\u578b&#034;\u7684\u6982\u5ff5&#xff0c;\u6539\u7528\u66f4\u5177\u4f53\u7684\u63cf\u8ff0\u6027\u6587\u5b57&#xff0c;\u8fd9\u5bf9\u65e5\u5e38\u5f00\u53d1\u65e0\u5b9e\u9645\u5f71\u54cd&#xff0c;\u4f46\u8ba9\u8bed\u8a00\u89c4\u8303\u66f4\u6e05\u6670\u6613\u61c2\u3002<\/p>\n<h3>\u5de5\u5177\u6539\u8fdb<\/h3>\n<h4>Go \u547d\u4ee4<\/h4>\n<p>go build -asan \u9009\u9879\u73b0\u5728\u9ed8\u8ba4\u5728\u7a0b\u5e8f\u9000\u51fa\u65f6\u8fdb\u884c\u6cc4\u6f0f\u68c0\u6d4b\u3002\u5982\u679c\u7531 C \u5206\u914d\u7684\u5185\u5b58\u65e2\u672a\u88ab\u91ca\u653e&#xff0c;\u53c8\u4e0d\u88ab\u4efb\u4f55\u5176\u4ed6\u7531 C \u6216 Go \u5206\u914d\u7684\u5185\u5b58\u5f15\u7528&#xff0c;\u5219\u4f1a\u62a5\u544a\u9519\u8bef\u3002\u8fd0\u884c\u7a0b\u5e8f\u65f6\u53ef\u4ee5\u901a\u8fc7\u5728\u73af\u5883\u4e2d\u8bbe\u7f6e ASAN_OPTIONS&#061;detect_leaks&#061;0 \u6765\u7981\u7528\u8fd9\u4e9b\u65b0\u9519\u8bef\u62a5\u544a\u3002<\/p>\n<p>Go \u53d1\u884c\u7248\u5c06\u5305\u542b\u66f4\u5c11\u7684\u9884\u6784\u5efa\u5de5\u5177\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u50cf\u7f16\u8bd1\u5668\u548c\u94fe\u63a5\u5668\u8fd9\u6837\u7684\u6838\u5fc3\u5de5\u5177\u94fe\u4e8c\u8fdb\u5236\u4ecd\u4f1a\u88ab\u5305\u542b&#xff0c;\u4f46\u90a3\u4e9b\u5728\u6784\u5efa\u6216\u6d4b\u8bd5\u64cd\u4f5c\u4e2d\u4e0d\u88ab\u8c03\u7528\u7684\u5de5\u5177\u5c06\u5728\u9700\u8981\u65f6\u7531 go tool \u6784\u5efa\u5e76\u8fd0\u884c\u3002<\/p>\n<p>\u65b0\u7684 go.mod ignore \u6307\u4ee4\u53ef\u7528\u4e8e\u6307\u5b9a go \u547d\u4ee4\u5e94\u5ffd\u7565\u7684\u76ee\u5f55\u3002\u4f4d\u4e8e\u8fd9\u4e9b\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u5728\u5339\u914d\u5305\u6a21\u5f0f&#xff08;\u4f8b\u5982 all \u6216 .\/\u2026&#xff09;\u65f6\u4f1a\u88ab go \u547d\u4ee4\u5ffd\u7565&#xff0c;\u4f46\u4ecd\u4f1a\u5305\u542b\u5728\u6a21\u5757 zip \u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u65b0\u7684 go doc -http \u9009\u9879\u5c06\u542f\u52a8\u4e00\u4e2a\u6587\u6863\u670d\u52a1\u5668&#xff0c;\u5c55\u793a\u6240\u8bf7\u6c42\u5bf9\u8c61\u7684\u6587\u6863&#xff0c;\u5e76\u5728\u6d4f\u89c8\u5668\u7a97\u53e3\u4e2d\u6253\u5f00\u8be5\u6587\u6863\u3002<\/p>\n<p>\u65b0\u7684 go version -m -json \u9009\u9879\u4f1a\u6253\u5370\u7ed9\u5b9a Go \u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u5d4c\u5165\u7684 runtime\/debug.BuildInfo \u7ed3\u6784\u7684 JSON \u7f16\u7801\u3002<\/p>\n<p>go \u547d\u4ee4\u73b0\u5728\u652f\u6301\u5728\u89e3\u6790\u6a21\u5757\u8def\u5f84\u65f6\u5c06\u4ed3\u5e93\u7684\u5b50\u76ee\u5f55\u4f5c\u4e3a\u6a21\u5757\u6839\u8def\u5f84&#xff0c;\u901a\u8fc7\u4f7f\u7528\u7c7b\u4f3c  \u7684\u8bed\u6cd5\u6765\u6307\u793a root-path \u5bf9\u5e94\u4e8e repo-url \u4e2d\u7684 subdir \u5b50\u76ee\u5f55&#xff08;\u7531\u7248\u672c\u63a7\u5236\u7cfb\u7edf vcs \u7ba1\u7406&#xff09;\u3002<\/p>\n<p>\u65b0\u7684 work \u5305\u6a21\u5f0f\u4f1a\u5339\u914d work&#xff08;\u539f\u540d\u4e3a main&#xff09;\u6a21\u5757\u4e2d\u7684\u6240\u6709\u5305&#xff1a;\u5728 module \u6a21\u5f0f\u4e0b\u4e3a\u5355\u4e2a work \u6a21\u5757&#xff0c;\u6216\u5728 workspace \u6a21\u5f0f\u4e0b\u4e3a\u5de5\u4f5c\u533a\u5185\u7684\u4e00\u7ec4\u6a21\u5757\u3002<\/p>\n<p>\u5f53 go \u547d\u4ee4\u66f4\u65b0 go.mod \u6216 go.work \u6587\u4ef6\u4e2d\u7684 go \u884c\u65f6&#xff0c;\u4e0d\u518d\u6dfb\u52a0\u4e00\u884c toolchain \u6765\u6307\u5b9a\u5f53\u524d\u547d\u4ee4\u7684\u7248\u672c\u3002<\/p>\n<h4>Vet \u5206\u6790\u5668<\/h4>\n<p>go vet \u547d\u4ee4\u5305\u542b\u4e86\u65b0\u7684\u5206\u6790\u5668&#xff1a;<\/p>\n<ul>\n<li>waitgroup&#xff1a;\u62a5\u544a\u5bf9 sync.WaitGroup.Add \u7684\u9519\u8bef\u4f4d\u7f6e\u8c03\u7528&#xff08;\u4f8b\u5982\u5728\u542f\u52a8 goroutine \u4e4b\u540e\u8c03\u7528 Add&#xff09;\u3002<\/li>\n<li>hostport&#xff1a;\u62a5\u544a\u4f7f\u7528 fmt.Sprintf(\u201c%s:%d\u201d, host, port) \u6765\u6784\u5efa\u4f20\u7ed9 net.Dial \u7684\u5730\u5740\u7684\u60c5\u51b5&#xff0c;\u56e0\u4e3a\u8fd9\u79cd\u65b9\u5f0f\u5728 IPv6 \u4e0b\u4e0d\u53ef\u7528&#xff1b;\u5efa\u8bae\u6539\u7528 net.JoinHostPort\u3002<\/li>\n<\/ul>\n<h3>\u8fd0\u884c\u65f6\u6539\u8fdb<\/h3>\n<h4>\u5bb9\u5668\u611f\u77e5\u7684 GOMAXPROCS<\/h4>\n<p>GOMAXPROCS \u7684\u9ed8\u8ba4\u884c\u4e3a\u5df2\u6539\u53d8\u3002\u6b64\u524d\u7248\u672c\u4e2d&#xff0c;GOMAXPROCS \u9ed8\u8ba4\u4e3a\u542f\u52a8\u65f6\u53ef\u7528\u7684\u903b\u8f91 CPU \u6570&#xff08;runtime.NumCPU&#xff09;\u3002Go 1.25 \u5f15\u5165\u4e86\u4e24\u9879\u6539\u53d8&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5728 Linux \u4e0a&#xff0c;\u8fd0\u884c\u65f6\u4f1a\u8003\u8651\u5305\u542b\u8be5\u8fdb\u7a0b\u7684 cgroup \u7684 CPU \u5e26\u5bbd\u9650\u5236&#xff08;\u5982\u679c\u5b58\u5728&#xff09;\u3002\u5982\u679c\u8be5 CPU \u5e26\u5bbd\u9650\u5236\u4f4e\u4e8e\u53ef\u7528\u7684\u903b\u8f91 CPU \u6570&#xff0c;GOMAXPROCS \u5c06\u9ed8\u8ba4\u4f7f\u7528\u8f83\u4f4e\u7684\u9650\u5236\u3002\u5728\u50cf Kubernetes \u8fd9\u6837\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\u7cfb\u7edf\u4e2d&#xff0c;cgroup \u7684 CPU \u5e26\u5bbd\u9650\u5236\u901a\u5e38\u5bf9\u5e94\u4e8e\u201cCPU \u9650\u5236\u201d\u9009\u9879\u3002Go \u8fd0\u884c\u65f6\u4e0d\u4f1a\u8003\u8651\u201cCPU \u8bf7\u6c42\u201d\u9009\u9879\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u6240\u6709\u64cd\u4f5c\u7cfb\u7edf\u4e0a&#xff0c;\u5982\u679c\u53ef\u7528\u7684\u903b\u8f91 CPU \u6570\u6216 cgroup \u7684 CPU \u5e26\u5bbd\u9650\u5236\u53d1\u751f\u53d8\u5316&#xff0c;\u8fd0\u884c\u65f6\u4f1a\u5b9a\u671f\u66f4\u65b0 GOMAXPROCS\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c\u901a\u8fc7 GOMAXPROCS \u73af\u5883\u53d8\u91cf\u6216\u8c03\u7528 runtime.GOMAXPROCS \u624b\u52a8\u8bbe\u7f6e\u4e86 GOMAXPROCS&#xff0c;\u4e0a\u8ff0\u4e24\u79cd\u884c\u4e3a\u4f1a\u81ea\u52a8\u88ab\u7981\u7528\u3002\u4e5f\u53ef\u4ee5\u901a\u8fc7 GODEBUG \u8bbe\u7f6e\u663e\u5f0f\u7981\u7528&#xff0c;\u5206\u522b\u4e3a containermaxprocs&#061;0 \u548c updatemaxprocs&#061;0\u3002<\/p>\n<p>\u4e3a\u4e86\u652f\u6301\u8bfb\u53d6\u66f4\u65b0\u540e\u7684 cgroup \u9650\u5236&#xff0c;\u8fd0\u884c\u65f6\u5c06\u5728\u8fdb\u7a0b\u751f\u547d\u5468\u671f\u5185\u4e3a cgroup \u6587\u4ef6\u4fdd\u7559\u5df2\u7f13\u5b58\u7684\u6587\u4ef6\u63cf\u8ff0\u7b26\u3002<\/p>\n<h4>\u5b9e\u9a8c\u6027\u5783\u573e\u56de\u6536\u5668<\/h4>\n<p>\u73b0\u5728\u53ef\u4ee5\u4f5c\u4e3a\u5b9e\u9a8c\u6027\u529f\u80fd\u4f7f\u7528\u4e00\u4e2a\u65b0\u7684\u5783\u573e\u56de\u6536\u5668\u3002\u8be5\u56de\u6536\u5668\u901a\u8fc7\u6539\u8fdb\u5c40\u90e8\u6027\u548c CPU \u53ef\u6269\u5c55\u6027&#xff0c;\u63d0\u5347\u5bf9\u5c0f\u5bf9\u8c61\u7684\u6807\u8bb0\u4e0e\u626b\u63cf\u6027\u80fd\u3002\u57fa\u51c6\u6d4b\u8bd5\u7ed3\u679c\u5b58\u5728\u5dee\u5f02&#xff0c;\u4f46\u6211\u4eec\u9884\u8ba1\u5728\u5927\u91cf\u4f9d\u8d56\u5783\u573e\u56de\u6536\u7684\u5b9e\u9645\u7a0b\u5e8f\u4e2d&#xff0c;\u5783\u573e\u56de\u6536\u5f00\u9500\u53ef\u51cf\u5c11\u7ea6 10% \u5230 40%\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u6784\u5efa\u65f6\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf GOEXPERIMENT&#061;greenteagc \u6765\u542f\u7528\u65b0\u7684\u5783\u573e\u56de\u6536\u5668\u3002\u8be5\u8bbe\u8ba1\u9884\u8ba1\u5c06\u7ee7\u7eed\u6f14\u8fdb\u6539\u8fdb&#xff0c;\u56e0\u6b64\u6211\u4eec\u9f13\u52b1 Go \u5f00\u53d1\u8005\u8bd5\u7528\u5e76\u53cd\u9988\u4ed6\u4eec\u7684\u4f7f\u7528\u4f53\u9a8c\u3002\u6709\u5173\u8bbe\u8ba1\u7ec6\u8282\u548c\u63d0\u4ea4\u53cd\u9988\u7684\u8bf4\u660e&#xff0c;\u8bf7\u53c2\u89c1\u76f8\u5e94\u7684 GitHub issue\u3002<\/p>\n<h4>Trace \u98de\u884c\u8bb0\u5f55\u4eea<\/h4>\n<p>\u8fd0\u884c\u65f6\u6267\u884c\u8ddf\u8e2a\u957f\u671f\u4ee5\u6765\u662f\u7406\u89e3\u548c\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\u5e95\u5c42\u884c\u4e3a\u7684\u5f3a\u5927\u4f46\u4ee3\u4ef7\u9ad8\u6602\u7684\u624b\u6bb5\u3002\u4e0d\u5e78\u7684\u662f&#xff0c;\u7531\u4e8e\u8ddf\u8e2a\u6570\u636e\u4f53\u79ef\u5927\u4e14\u6301\u7eed\u5199\u5165\u5f00\u9500\u9ad8&#xff0c;\u8fd9\u79cd\u65b9\u5f0f\u901a\u5e38\u4e0d\u9002\u7528\u4e8e\u8c03\u8bd5\u7f55\u89c1\u4e8b\u4ef6\u3002<\/p>\n<p>\u65b0\u7684 runtime\/trace.FlightRecorder API \u63d0\u4f9b\u4e86\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u65b9\u5f0f\u6765\u6355\u83b7\u8fd0\u884c\u65f6\u6267\u884c\u8ddf\u8e2a&#xff1a;\u5b83\u5c06\u8ddf\u8e2a\u6301\u7eed\u8bb0\u5f55\u5230\u4e00\u4e2a\u5185\u5b58\u73af\u5f62\u7f13\u51b2\u533a\u4e2d\u3002\u5f53\u53d1\u751f\u91cd\u8981\u4e8b\u4ef6\u65f6&#xff0c;\u7a0b\u5e8f\u53ef\u4ee5\u8c03\u7528 FlightRecorder.WriteTo&#xff0c;\u5c06\u6700\u8fd1\u51e0\u79d2\u7684\u8ddf\u8e2a\u5feb\u7167\u5199\u5165\u6587\u4ef6\u3002\u901a\u8fc7\u8ba9\u5e94\u7528\u53ea\u6355\u83b7\u5173\u5fc3\u7684\u8ddf\u8e2a\u7247\u6bb5&#xff0c;\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u751f\u6210\u66f4\u5c0f\u7684\u8ddf\u8e2a\u6587\u4ef6\u3002<\/p>\n<p>FlightRecorder \u6355\u83b7\u7684\u65f6\u95f4\u957f\u5ea6\u548c\u6570\u636e\u91cf\u53ef\u4ee5\u5728 FlightRecorderConfig \u4e2d\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n<h4>\u672a\u5904\u7406 panic \u8f93\u51fa\u7684\u66f4\u6539<\/h4>\n<p>\u5f53\u7a0b\u5e8f\u56e0\u4e00\u4e2a\u88ab recover \u540e\u53c8\u91cd\u65b0 panic \u7684\u672a\u5904\u7406 panic \u800c\u9000\u51fa\u65f6&#xff0c;\u6253\u5370\u7684\u6d88\u606f\u4e0d\u518d\u91cd\u590d panic \u503c\u7684\u6587\u672c\u3002<\/p>\n<p>\u4e4b\u524d&#xff0c;\u4e00\u4e2a\u5148 panic(\u201cPANIC\u201d)&#xff0c;recover \u540e\u53c8\u7528\u539f\u503c\u91cd\u65b0 panic \u7684\u7a0b\u5e8f\u4f1a\u6253\u5370&#xff1a;<\/p>\n<p>panic: PANIC [recovered]<br \/>\n  panic: PANIC<\/p>\n<p>\u73b0\u5728\u8be5\u7a0b\u5e8f\u5c06\u6253\u5370&#xff1a;<\/p>\n<p>panic: PANIC [recovered, repanicked]<\/p>\n<h3>Linux \u4e0a\u7684 VMA \u540d\u79f0<\/h3>\n<p>\u5728\u542f\u7528\u4e86\u533f\u540d\u865a\u62df\u5185\u5b58\u533a\u57df&#xff08;VMA&#xff09;\u540d\u79f0\u652f\u6301&#xff08;CONFIG_ANON_VMA_NAME&#xff09;\u7684 Linux \u7cfb\u7edf\u4e0a&#xff0c;Go \u8fd0\u884c\u65f6\u4f1a\u5728\u533f\u540d\u5185\u5b58\u6620\u5c04\u4e2d\u6dfb\u52a0\u7528\u4e8e\u8bf4\u660e\u5176\u7528\u9014\u7684\u6ce8\u91ca\u3002\u4f8b\u5982&#xff0c;\u5806\u5185\u5b58\u4f1a\u88ab\u6807\u6ce8\u4e3a [anon: Go: heap]\u3002\u53ef\u4ee5\u901a\u8fc7\u5c06 GODEBUG \u8bbe\u7f6e\u4e3a decoratemappings&#061;0 \u6765\u7981\u7528\u6b64\u529f\u80fd\u3002<\/p>\n<h3>\u7f16\u8bd1\u5668<\/h3>\n<h4>nil \u6307\u9488\u4fee\u590d<\/h4>\n<p>\u6b64\u7248\u672c\u4fee\u590d\u4e86\u4e00\u4e2a\u5728 Go 1.21 \u4e2d\u5f15\u5165\u7684\u7f16\u8bd1\u5668\u9519\u8bef&#xff0c;\u8be5\u9519\u8bef\u53ef\u80fd\u4f1a\u9519\u8bef\u5730\u5ef6\u8fdf\u5bf9 nil \u6307\u9488\u7684\u68c0\u67e5\u3002\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\u7684\u7a0b\u5e8f&#xff0c;\u8fc7\u53bb\u4f1a&#xff08;\u9519\u8bef\u5730&#xff09;\u6210\u529f\u6267\u884c&#xff0c;\u73b0\u5728\u5c06\u4f1a&#xff08;\u6b63\u786e\u5730&#xff09;\u56e0\u7a7a\u6307\u9488\u5f02\u5e38\u800c panic&#xff1a;<\/p>\n<p><span class=\"token keyword\">package<\/span> main<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token string\">&#034;os&#034;<\/span><\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    f<span class=\"token punctuation\">,<\/span> err <span class=\"token operator\">:&#061;<\/span> os<span class=\"token punctuation\">.<\/span><span class=\"token function\">Open<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;nonExistentFile&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    name <span class=\"token operator\">:&#061;<\/span> f<span class=\"token punctuation\">.<\/span><span class=\"token function\">Name<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> err <span class=\"token operator\">!&#061;<\/span> <span class=\"token boolean\">nil<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">return<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6b64\u7a0b\u5e8f\u662f\u9519\u8bef\u7684&#xff0c;\u56e0\u4e3a\u5728\u68c0\u67e5\u9519\u8bef\u4e4b\u524d\u5c31\u4f7f\u7528\u4e86 os.Open \u7684\u8fd4\u56de\u503c\u3002\u5982\u679c err \u975e nil&#xff0c;\u90a3\u4e48 f \u53ef\u80fd\u4e3a nil&#xff0c;\u6b64\u65f6\u8c03\u7528 f.Name() \u5e94\u8be5\u5f15\u53d1 panic\u3002\u7136\u800c\u5728 Go 1.21 \u5230 1.24 \u4e2d&#xff0c;\u7f16\u8bd1\u5668\u9519\u8bef\u5730\u5c06\u5bf9 nil \u7684\u68c0\u67e5\u5ef6\u8fdf\u5230\u4e86\u9519\u8bef\u68c0\u67e5\u4e4b\u540e&#xff0c;\u5bfc\u81f4\u7a0b\u5e8f\u9519\u8bef\u5730\u6210\u529f\u6267\u884c&#xff0c;\u8fdd\u53cd\u4e86 Go \u89c4\u8303\u3002\u5728 Go 1.25 \u4e2d&#xff0c;\u5b83\u5c06\u4e0d\u518d\u6210\u529f\u8fd0\u884c\u3002\u5982\u679c\u6b64\u66f4\u6539\u5f71\u54cd\u5230\u4f60\u7684\u4ee3\u7801&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u662f\u5c3d\u65e9\u8fdb\u884c err !&#061; nil \u7684\u68c0\u67e5&#xff0c;\u6700\u597d\u5728\u4ea7\u751f\u8be5\u9519\u8bef\u7684\u8bed\u53e5\u4e4b\u540e\u7acb\u5373\u8fdb\u884c\u3002<\/p>\n<h4>DWARF5 \u652f\u6301<\/h4>\n<p>Go 1.25 \u4e2d\u7684\u7f16\u8bd1\u5668\u548c\u94fe\u63a5\u5668\u73b0\u5728\u4f7f\u7528 DWARF \u7b2c 5 \u7248\u6765\u751f\u6210\u8c03\u8bd5\u4fe1\u606f\u3002\u66f4\u65b0\u7684 DWARF \u7248\u672c\u51cf\u5c0f\u4e86 Go \u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u8c03\u8bd5\u4fe1\u606f\u6240\u5360\u7684\u7a7a\u95f4&#xff0c;\u5e76\u7f29\u77ed\u4e86\u94fe\u63a5\u65f6\u95f4&#xff0c;\u5c24\u5176\u662f\u5bf9\u4e8e\u5927\u578b Go \u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u53ef\u4ee5\u5728\u6784\u5efa\u65f6\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf GOEXPERIMENT&#061;nodwarf5 \u6765\u7981\u7528 DWARF5 \u7684\u751f\u6210&#xff08;\u6b64\u56de\u9000\u9009\u9879\u5728\u5c06\u6765\u7684 Go \u53d1\u884c\u7248\u4e2d\u53ef\u80fd\u4f1a\u88ab\u79fb\u9664&#xff09;\u3002<\/p>\n<h4>\u66f4\u5feb\u7684\u5207\u7247&#xff08;slices&#xff09;<\/h4>\n<p>\u7f16\u8bd1\u5668\u73b0\u5728\u5728\u66f4\u591a\u60c5\u51b5\u4e0b\u80fd\u591f\u5c06\u5207\u7247\u7684\u5e95\u5c42\u5b58\u50a8\u5206\u914d\u5230\u6808\u4e0a&#xff0c;\u4ece\u800c\u63d0\u9ad8\u6027\u80fd\u3002\u6b64\u66f4\u6539\u53ef\u80fd\u4f1a\u653e\u5927\u5bf9\u4e0d\u6b63\u786e\u4f7f\u7528 unsafe.Pointer \u7684\u5f71\u54cd&#xff0c;\u4f8b\u5982\u53c2\u89c1 issue 73199\u3002\u4e3a\u5b9a\u4f4d\u8fd9\u4e9b\u95ee\u9898&#xff0c;\u53ef\u4f7f\u7528 bisect \u5de5\u5177\u5e76\u52a0\u4e0a -compile&#061;variablemake \u6807\u5fd7\u6765\u67e5\u627e\u5bfc\u81f4\u95ee\u9898\u7684\u5206\u914d\u3002\u6240\u6709\u6b64\u7c7b\u65b0\u7684\u6808\u4e0a\u5206\u914d\u4e5f\u53ef\u4ee5\u901a\u8fc7 -gcflags&#061;all&#061;-d&#061;variablemakehash&#061;n \u6765\u5173\u95ed\u3002<\/p>\n<h4>\u94fe\u63a5\u5668<\/h4>\n<p>\u94fe\u63a5\u5668\u73b0\u5728\u63a5\u53d7 -funcalign&#061;N \u547d\u4ee4\u884c\u9009\u9879&#xff0c;\u7528\u4e8e\u6307\u5b9a\u51fd\u6570\u5165\u53e3\u7684\u5bf9\u9f50\u65b9\u5f0f\u3002\u9ed8\u8ba4\u503c\u4f9d\u8d56\u4e8e\u5e73\u53f0&#xff0c;\u5728\u672c\u6b21\u53d1\u5e03\u4e2d\u4fdd\u6301\u4e0d\u53d8\u3002<\/p>\n<h3>\u6807\u51c6\u5e93<\/h3>\n<h4>\u65b0 testing\/synctest \u5305<\/h4>\n<p>\u65b0\u7684 testing\/synctest \u5305\u4e3a\u6d4b\u8bd5\u5e76\u53d1\u4ee3\u7801\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n<p>Test \u51fd\u6570\u5728\u4e00\u4e2a\u9694\u79bb\u7684\u201c\u6ce1\u201d\u4e2d\u8fd0\u884c\u6d4b\u8bd5\u51fd\u6570\u3002\u5728\u8be5\u201c\u6ce1\u201d\u5185\u65f6\u95f4\u88ab\u865a\u62df\u5316&#xff1a;time \u5305\u7684\u51fd\u6570\u5728\u4e00\u4e2a\u4f2a\u65f6\u949f\u4e0a\u8fd0\u884c&#xff1b;\u5982\u679c\u201c\u6ce1\u201d\u5185\u7684\u6240\u6709 goroutine \u90fd\u88ab\u963b\u585e&#xff0c;\u65f6\u949f\u4f1a\u7acb\u5373\u5411\u524d\u63a8\u8fdb\u3002<\/p>\n<p>Wait \u51fd\u6570\u7b49\u5f85\u5f53\u524d\u201c\u6ce1\u201d\u5185\u7684\u6240\u6709 goroutine \u90fd\u963b\u585e\u3002<\/p>\n<p>\u8be5\u5305\u9996\u6b21\u5728 Go 1.24 \u4e2d\u4ee5 GOEXPERIMENT&#061;synctest \u5b9e\u9a8c\u5f62\u5f0f\u63d0\u4f9b&#xff0c;API \u4e0e\u73b0\u5728\u7565\u6709\u4e0d\u540c\u3002\u8be5\u5b9e\u9a8c\u73b0\u5df2\u6bd5\u4e1a\u4e3a\u6b63\u5f0f\u529f\u80fd\u3002\u82e5\u8bbe\u7f6e\u4e86 GOEXPERIMENT&#061;synctest&#xff0c;\u65e7\u7684 API \u4ecd\u7136\u53ef\u7528&#xff0c;\u4f46\u5c06\u5728 Go 1.26 \u4e2d\u79fb\u9664\u3002<\/p>\n<h4>\u5b9e\u9a8c\u6027 encoding\/json\/v2 \u5305<\/h4>\n<p>Go 1.25 \u5305\u542b\u4e00\u4e2a\u65b0\u7684\u5b9e\u9a8c\u6027 JSON \u5b9e\u73b0&#xff0c;\u5728\u6784\u5efa\u65f6\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf GOEXPERIMENT&#061;jsonv2 \u6765\u542f\u7528\u3002<\/p>\n<p>\u542f\u7528\u540e&#xff0c;\u4f1a\u63d0\u4f9b\u4e24\u4e2a\u65b0\u5305&#xff1a;<\/p>\n<ul>\n<li>encoding\/json\/v2 \u5305\u662f\u5bf9 encoding\/json \u5305\u7684\u91cd\u5927\u4fee\u8ba2\u3002<\/li>\n<li>encoding\/json\/jsontext \u5305\u63d0\u4f9b\u66f4\u5e95\u5c42\u7684 JSON \u8bed\u6cd5\u5904\u7406\u3002<\/li>\n<\/ul>\n<p>\u6b64\u5916&#xff0c;\u5f53\u542f\u7528 \u201cjsonv2\u201d GOEXPERIMENT \u65f6&#xff1a;<\/p>\n<ul>\n<li>encoding\/json \u5305\u5c06\u4f7f\u7528\u65b0\u7684 JSON \u5b9e\u73b0\u3002\u5e8f\u5217\u5316&#xff08;marshal&#xff09;\u548c\u53cd\u5e8f\u5217\u5316&#xff08;unmarshal&#xff09;\u7684\u884c\u4e3a\u4e0d\u53d7\u5f71\u54cd&#xff0c;\u4f46\u5305\u51fd\u6570\u8fd4\u56de\u7684\u9519\u8bef\u6587\u672c\u53ef\u80fd\u4f1a\u6539\u53d8\u3002<\/li>\n<li>encoding\/json \u5305\u5305\u542b\u82e5\u5e72\u53ef\u7528\u4e8e\u914d\u7f6e\u5e8f\u5217\u5316\u5668\u548c\u53cd\u5e8f\u5217\u5316\u5668\u7684\u65b0\u9009\u9879\u3002<\/li>\n<li>\u5728\u8bb8\u591a\u573a\u666f\u4e0b&#xff0c;\u65b0\u5b9e\u73b0\u7684\u6027\u80fd\u660e\u663e\u4f18\u4e8e\u73b0\u6709\u5b9e\u73b0\u3002\u603b\u4f53\u4e0a&#xff0c;\u7f16\u7801\u6027\u80fd\u4e0e\u65e7\u5b9e\u73b0\u76f8\u5f53&#xff0c;\u800c\u89e3\u7801\u5728\u65b0\u5b9e\u73b0\u4e2d\u660e\u663e\u66f4\u5feb\u3002\u6709\u5173\u66f4\u8be6\u7ec6\u7684\u5206\u6790&#xff0c;\u8bf7\u53c2\u89c1 github.com\/go-json-experiment\/jsonbench \u4ed3\u5e93\u3002<\/li>\n<\/ul>\n<p>\u6211\u4eec\u9f13\u52b1 encoding\/json \u7684\u7528\u6237\u5728\u542f\u7528 GOEXPERIMENT&#061;jsonv2 \u7684\u60c5\u51b5\u4e0b\u6d4b\u8bd5\u4ed6\u4eec\u7684\u7a0b\u5e8f&#xff0c;\u4ee5\u5e2e\u52a9\u53d1\u73b0\u65b0\u5b9e\u73b0\u53ef\u80fd\u5e26\u6765\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p>\u6211\u4eec\u9884\u8ba1 encoding\/json\/v2 \u7684\u8bbe\u8ba1\u5c06\u7ee7\u7eed\u6f14\u8fdb&#xff0c;\u9f13\u52b1\u5f00\u53d1\u8005\u8bd5\u7528\u65b0 API \u5e76\u5728\u63d0\u6848\u95ee\u9898\u4e2d\u63d0\u4f9b\u53cd\u9988\u3002<\/p>\n<h4>\u5e93\u7684\u6b21\u8981\u66f4\u6539<\/h4>\n<h5>archive\/tar<\/h5>\n<p>Writer.AddFS \u7684\u5b9e\u73b0\u73b0\u5728\u652f\u6301\u5bf9\u5b9e\u73b0\u4e86 io\/fs.ReadLinkFS \u7684\u6587\u4ef6\u7cfb\u7edf\u5904\u7406\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n<h5>encoding\/asn1<\/h5>\n<p>Unmarshal \u548c UnmarshalWithParams \u73b0\u5728\u5bf9 ASN.1 \u7c7b\u578b T61String \u548c BMPString \u7684\u89e3\u6790\u66f4\u52a0\u4e00\u81f4\u3002\u8fd9\u53ef\u80fd\u5bfc\u81f4\u4e4b\u524d\u88ab\u63a5\u53d7\u7684\u4e00\u4e9b\u683c\u5f0f\u9519\u8bef\u7684\u7f16\u7801\u73b0\u5728\u88ab\u62d2\u7edd\u3002<\/p>\n<h5>crypto<\/h5>\n<p>MessageSigner \u662f\u4e00\u4e2a\u65b0\u7684\u7b7e\u540d\u63a5\u53e3&#xff0c;\u4f9b\u5e0c\u671b\u81ea\u884c\u5bf9\u5f85\u7b7e\u540d\u6d88\u606f\u8fdb\u884c\u54c8\u5e0c\u7684\u7b7e\u540d\u5668\u5b9e\u73b0\u3002\u8fd8\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u51fd\u6570 SignMessage&#xff1a;\u5b83\u4f1a\u5c1d\u8bd5\u5c06\u4e00\u4e2a Signer \u63a5\u53e3\u5347\u7ea7\u4e3a MessageSigner&#xff1b;\u5982\u679c\u5347\u7ea7\u6210\u529f\u5219\u4f7f\u7528 MessageSigner.SignMessage \u65b9\u6cd5&#xff0c;\u5426\u5219\u56de\u9000\u4f7f\u7528 Signer.Sign\u3002\u6b64\u673a\u5236\u53ef\u7528\u4e8e\u540c\u65f6\u652f\u6301 Signer \u548c MessageSigner \u7684\u4ee3\u7801\u8def\u5f84\u3002<\/p>\n<p>\u7a0b\u5e8f\u542f\u52a8\u540e\u66f4\u6539 fips140 \u7684 GODEBUG \u8bbe\u7f6e\u73b0\u5728\u4e0d\u4f1a\u751f\u6548&#xff08;\u65e0\u64cd\u4f5c&#xff09;\u3002\u6b64\u524d\u6587\u6863\u4e2d\u7981\u6b62\u66f4\u6539&#xff0c;\u4e14\u66f4\u6539\u53ef\u80fd\u5bfc\u81f4 panic\u3002<\/p>\n<p>\u5728 amd64 \u5e73\u53f0\u4e0a&#xff0c;\u5982\u679c\u4e0d\u53ef\u7528 AVX2 \u6307\u4ee4&#xff0c;SHA-1\u3001SHA-256 \u548c SHA-512 \u7684\u901f\u5ea6\u73b0\u5728\u4f1a\u53d8\u6162\u3002\u81ea 2015 \u5e74\u4ee5\u6765\u751f\u4ea7\u7684\u6240\u6709\u670d\u52a1\u5668\u5904\u7406\u5668&#xff08;\u4ee5\u53ca\u5927\u591a\u6570\u5176\u4ed6\u5904\u7406\u5668&#xff09;\u90fd\u652f\u6301 AVX2\u3002<\/p>\n<h5>crypto\/ecdsa<\/h5>\n<p>\u65b0\u7684 ParseRawPrivateKey\u3001ParseUncompressedPublicKey\u3001PrivateKey.Bytes \u548c PublicKey.Bytes \u51fd\u6570\/\u65b9\u6cd5\u5b9e\u73b0\u4e86\u4f4e\u5c42\u7f16\u7801&#xff0c;\u7701\u53bb\u4e86\u4f7f\u7528 crypto\/elliptic \u6216 math\/big \u7684\u9700\u8981\u3002<\/p>\n<p>\u5728\u542f\u7528 FIPS 140-3 \u6a21\u5f0f\u65f6&#xff0c;\u7b7e\u540d\u901f\u5ea6\u73b0\u63d0\u9ad8\u4e3a\u539f\u6765\u7684 4 \u500d&#xff0c;\u4e0e\u975e FIPS \u6a21\u5f0f\u7684\u6027\u80fd\u4e00\u81f4\u3002<\/p>\n<h5>crypto\/ed25519<\/h5>\n<p>\u5728\u542f\u7528 FIPS 140-3 \u6a21\u5f0f\u65f6&#xff0c;\u7b7e\u540d\u901f\u5ea6\u73b0\u5728\u63d0\u5347\u4e3a\u539f\u6765\u7684\u56db\u500d&#xff0c;\u8fbe\u5230\u4e0e\u975e FIPS \u6a21\u5f0f\u76f8\u540c\u7684\u6027\u80fd\u3002<\/p>\n<h5>crypto\/elliptic<\/h5>\n<p>\u67d0\u4e9b Curve \u5b9e\u73b0\u4e2d\u9690\u85cf\u4e14\u672a\u8bb0\u5f55\u7684 Inverse \u548c CombinedMult \u65b9\u6cd5\u5df2\u88ab\u79fb\u9664\u3002<\/p>\n<h5>crypto\/rsa<\/h5>\n<p>PublicKey \u4e0d\u518d\u58f0\u79f0\u6a21\u6570&#xff08;modulus&#xff09;\u503c\u88ab\u89c6\u4e3a\u673a\u5bc6\u3002VerifyPKCS1v15 \u548c VerifyPSS \u5df2\u7ecf\u8b66\u544a\u6240\u6709\u8f93\u5165\u90fd\u662f\u516c\u5f00\u7684\u5e76\u53ef\u80fd\u88ab\u6cc4\u9732&#xff0c;\u4e14\u5b58\u5728\u53ef\u4ee5\u4ece\u5176\u4ed6\u516c\u5f00\u503c\u6062\u590d\u6a21\u6570\u7684\u6570\u5b66\u653b\u51fb\u3002<\/p>\n<p>\u5bc6\u94a5\u751f\u6210\u73b0\u5728\u5feb\u4e86\u4e09\u500d\u3002<\/p>\n<h5>crypto\/sha1<\/h5>\n<p>\u5728 amd64 \u5e73\u53f0\u4e0a&#xff0c;\u5f53\u53ef\u7528 SHA-NI \u6307\u4ee4\u65f6&#xff0c;\u54c8\u5e0c\u8fd0\u7b97\u73b0\u5728\u5feb\u4e86\u4e24\u500d\u3002<\/p>\n<h5>crypto\/sha3<\/h5>\n<p>\u65b0\u7684 SHA3.Clone \u65b9\u6cd5\u5b9e\u73b0\u4e86 hash.Cloner \u63a5\u53e3\u3002<\/p>\n<p>\u5728 Apple M \u5904\u7406\u5668\u4e0a&#xff0c;\u54c8\u5e0c\u901f\u5ea6\u73b0\u5728\u63d0\u9ad8\u4e86\u4e24\u500d\u3002<\/p>\n<h5>crypto\/tls<\/h5>\n<p>\u65b0\u7684 ConnectionState.CurveID \u5b57\u6bb5\u516c\u5f00\u4e86\u7528\u4e8e\u5efa\u7acb\u8fde\u63a5\u7684\u5bc6\u94a5\u4ea4\u6362\u673a\u5236\u3002<\/p>\n<p>\u65b0\u7684 Config.GetEncryptedClientHelloKeys \u56de\u8c03\u53ef\u7528\u4e8e\u5728\u5ba2\u6237\u7aef\u53d1\u9001 Encrypted Client Hello \u6269\u5c55\u65f6&#xff0c;\u4e3a\u670d\u52a1\u5668\u8bbe\u7f6e EncryptedClientHelloKeys\u3002<\/p>\n<p>\u6839\u636e RFC 9155&#xff0c;\u5728 TLS 1.2 \u63e1\u624b\u4e2d\u5df2\u4e0d\u518d\u5141\u8bb8\u4f7f\u7528 SHA-1 \u7b7e\u540d\u7b97\u6cd5\u3002\u53ef\u901a\u8fc7\u5c06 GODEBUG \u8bbe\u7f6e\u4e3a tlssha1&#061;1 \u6765\u91cd\u65b0\u542f\u7528\u5b83\u4eec\u3002<\/p>\n<p>\u5728\u542f\u7528 FIPS 140-3 \u6a21\u5f0f\u65f6&#xff0c;TLS 1.2 \u73b0\u5728\u8981\u6c42\u4f7f\u7528 Extended Master Secret&#xff0c;\u5e76\u4e14\u5141\u8bb8\u4f7f\u7528 Ed25519 \u548c X25519MLKEM768\u3002<\/p>\n<p>TLS \u670d\u52a1\u5668\u73b0\u5728\u504f\u597d\u4f7f\u7528\u6700\u9ad8\u652f\u6301\u7684\u534f\u8bae\u7248\u672c&#xff0c;\u5373\u4f7f\u8fd9\u4e0d\u662f\u5ba2\u6237\u7aef\u6700\u4f18\u5148\u7684\u7248\u672c\u3002<\/p>\n<p>TLS \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5728\u9075\u4ece\u89c4\u8303\u5e76\u62d2\u7edd\u4e0d\u7b26\u5408\u89c4\u8303\u7684\u884c\u4e3a\u65b9\u9762\u53d8\u5f97\u66f4\u4e25\u683c\u3002\u4e0e\u9075\u5faa\u89c4\u8303\u7684\u5bf9\u7aef\u5efa\u7acb\u7684\u8fde\u63a5\u5e94\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n<h5>crypto\/x509<\/h5>\n<p>CreateCertificate\u3001CreateCertificateRequest \u548c CreateRevocationList \u73b0\u5728\u53ef\u4ee5\u63a5\u53d7 crypto.MessageSigner \u7b7e\u540d\u63a5\u53e3\u4ee5\u53ca crypto.Signer\u3002\u8fd9\u5141\u8bb8\u8fd9\u4e9b\u51fd\u6570\u4f7f\u7528\u5b9e\u73b0\u201c\u4e00\u6b21\u6027\u201d\u7b7e\u540d\u63a5\u53e3\u7684\u7b7e\u540d\u5668&#xff08;\u5373\u5728\u7b7e\u540d\u64cd\u4f5c\u4e2d\u5b8c\u6210\u54c8\u5e0c&#xff0c;\u800c\u4e0d\u662f\u7531\u8c03\u7528\u65b9\u5148\u884c\u54c8\u5e0c&#xff09;\u3002<\/p>\n<p>\u5982\u679c SubjectKeyId \u7f3a\u5931&#xff0c;CreateCertificate \u73b0\u5728\u4f7f\u7528\u622a\u65ad\u7684 SHA-256 \u6765\u586b\u5145\u3002\u5c06 GODEBUG \u8bbe\u7f6e\u4e3a x509sha256skid&#061;0 \u53ef\u6062\u590d\u4e3a\u4f7f\u7528 SHA-1\u3002<\/p>\n<p>ParseCertificate \u73b0\u5728\u4f1a\u62d2\u7edd\u5305\u542b\u5e26\u6709\u8d1f pathLenConstraint \u7684 BasicConstraints \u6269\u5c55\u7684\u8bc1\u4e66\u3002<\/p>\n<p>ParseCertificate \u73b0\u5728\u5bf9\u4f7f\u7528 ASN.1 T61String \u548c BMPString \u7c7b\u578b\u7f16\u7801\u7684\u5b57\u7b26\u4e32\u5904\u7406\u66f4\u4e3a\u4e00\u81f4\u3002\u8fd9\u53ef\u80fd\u5bfc\u81f4\u4e4b\u524d\u88ab\u63a5\u53d7\u7684\u4e00\u4e9b\u683c\u5f0f\u9519\u8bef\u7684\u7f16\u7801\u73b0\u5728\u88ab\u62d2\u7edd\u3002<\/p>\n<h5>debug\/elf<\/h5>\n<p>debug\/elf \u5305\u65b0\u589e\u4e86\u4e24\u4e2a\u5e38\u91cf&#xff1a;<\/p>\n<ul>\n<li>PT_RISCV_ATTRIBUTES<\/li>\n<li>SHT_RISCV_ATTRIBUTES \u7528\u4e8e RISC-V ELF \u7684\u89e3\u6790\u3002<\/li>\n<\/ul>\n<h5>go\/ast<\/h5>\n<p>FilterPackage\u3001PackageExports \u548c MergePackageFiles \u51fd\u6570&#xff0c;\u4ee5\u53ca MergeMode \u7c7b\u578b\u548c\u5176\u5e38\u91cf&#xff0c;\u5747\u5df2\u5f03\u7528&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u4ec5\u7528\u4e8e\u957f\u671f\u5df2\u5f03\u7528\u7684 Object \u548c Package \u673a\u5236\u3002<\/p>\n<p>\u65b0\u7684 PreorderStack \u51fd\u6570\u4e0e Inspect \u7c7b\u4f3c&#xff0c;\u7528\u4e8e\u904d\u5386\u8bed\u6cd5\u6811\u5e76\u53ef\u63a7\u5236\u662f\u5426\u8fdb\u5165\u5b50\u6811&#xff0c;\u4f46\u4f5c\u4e3a\u4fbf\u5229&#xff0c;\u5b83\u8fd8\u5728\u6bcf\u4e2a\u4f4d\u7f6e\u63d0\u4f9b\u4e86\u5305\u542b\u8be5\u8282\u70b9\u7684\u7236\/\u5c01\u95ed\u8282\u70b9\u6808\u3002<\/p>\n<h5>go\/parser<\/h5>\n<p>ParseDir \u51fd\u6570\u5df2\u5f03\u7528\u3002<\/p>\n<h5>go\/token<\/h5>\n<p>\u65b0\u7684 FileSet.AddExistingFiles \u65b9\u6cd5\u5141\u8bb8\u5c06\u73b0\u6709\u7684 File \u6dfb\u52a0\u5230 FileSet&#xff0c;\u6216\u4e3a\u4efb\u610f\u4e00\u7ec4 File \u6784\u5efa FileSet&#xff0c;\u4ece\u800c\u7f13\u89e3\u957f\u671f\u8fd0\u884c\u7684\u5e94\u7528\u4e2d\u4e0e\u5355\u4e00\u5168\u5c40 FileSet \u76f8\u5173\u7684\u95ee\u9898\u3002<\/p>\n<h5>go\/types<\/h5>\n<p>Var \u73b0\u5728\u6709\u4e00\u4e2a Var.Kind \u65b9\u6cd5&#xff0c;\u7528\u4e8e\u5c06\u53d8\u91cf\u5206\u7c7b\u4e3a\u4ee5\u4e0b\u4e4b\u4e00&#xff1a;\u5305\u7ea7\u53d8\u91cf\u3001\u63a5\u6536\u8005\u3001\u53c2\u6570\u3001\u8fd4\u56de\u503c\u3001\u5c40\u90e8\u53d8\u91cf\u6216\u7ed3\u6784\u4f53\u5b57\u6bb5\u3002<\/p>\n<p>\u65b0\u7684 LookupSelection \u51fd\u6570\u7528\u4e8e\u67e5\u627e\u7ed9\u5b9a\u540d\u79f0\u548c\u63a5\u6536\u8005\u7c7b\u578b\u7684\u5b57\u6bb5\u6216\u65b9\u6cd5&#xff0c;\u7c7b\u4f3c\u4e8e\u73b0\u6709\u7684 LookupFieldOrMethod&#xff0c;\u4f46\u4ee5 Selection \u7684\u5f62\u5f0f\u8fd4\u56de\u7ed3\u679c\u3002<\/p>\n<h5>hash<\/h5>\n<p>\u65b0\u7684 XOF \u63a5\u53e3\u53ef\u7531\u201c\u53ef\u6269\u5c55\u8f93\u51fa\u51fd\u6570\u201d\u5b9e\u73b0&#xff0c;\u8fd9\u7c7b\u54c8\u5e0c\u51fd\u6570\u5177\u6709\u4efb\u610f\u6216\u65e0\u9650\u7684\u8f93\u51fa\u957f\u5ea6&#xff0c;\u4f8b\u5982 SHAKE\u3002<\/p>\n<p>\u5b9e\u73b0\u4e86\u65b0\u7684 Cloner \u63a5\u53e3\u7684\u54c8\u5e0c\u53ef\u4ee5\u8fd4\u56de\u5176\u5185\u90e8\u72b6\u6001\u7684\u526f\u672c\u3002\u6807\u51c6\u5e93\u4e2d\u6240\u6709\u7684 Hash \u5b9e\u73b0\u73b0\u5728\u90fd\u5b9e\u73b0\u4e86 Cloner\u3002<\/p>\n<h5>hash\/maphash<\/h5>\n<p>\u65b0\u7684 Hash.Clone \u65b9\u6cd5\u5b9e\u73b0\u4e86 hash.Cloner \u63a5\u53e3\u3002<\/p>\n<h5>io\/fs<\/h5>\n<p>\u65b0\u589e\u7684 ReadLinkFS \u63a5\u53e3\u63d0\u4f9b\u5728\u6587\u4ef6\u7cfb\u7edf\u4e2d\u8bfb\u53d6\u7b26\u53f7\u94fe\u63a5\u7684\u80fd\u529b\u3002<\/p>\n<h5>log\/slog<\/h5>\n<p>GroupAttrs \u4ece\u4e00\u4e2a Attr \u503c\u7684\u5207\u7247\u521b\u5efa\u4e00\u4e2a\u5206\u7ec4\u7684 Attr\u3002<\/p>\n<p>Record \u73b0\u5728\u6709\u4e00\u4e2a Source \u65b9\u6cd5&#xff0c;\u8fd4\u56de\u5176\u6e90\u4f4d\u7f6e\u4fe1\u606f&#xff1b;\u5982\u679c\u4e0d\u53ef\u7528\u5219\u8fd4\u56de nil\u3002<\/p>\n<h5>mime\/multipart<\/h5>\n<p>\u65b0\u589e\u7684\u8f85\u52a9\u51fd\u6570 FileContentDisposition \u7528\u4e8e\u6784\u5efa multipart \u7684 Content-Disposition \u5934\u5b57\u6bb5\u3002<\/p>\n<h5>net<\/h5>\n<p>LookupMX \u548c Resolver.LookupMX \u73b0\u5728\u4f1a\u8fd4\u56de\u770b\u8d77\u6765\u50cf\u6709\u6548 IP \u5730\u5740\u7684 DNS \u540d\u79f0&#xff0c;\u4e5f\u4f1a\u8fd4\u56de\u6709\u6548\u7684\u57df\u540d\u3002\u4e4b\u524d\u5982\u679c\u540d\u79f0\u670d\u52a1\u5668\u628a IP \u5730\u5740\u4f5c\u4e3a DNS \u540d\u79f0\u8fd4\u56de&#xff0c;LookupMX \u4f1a\u6839\u636e RFC \u4e22\u5f03\u5b83&#xff0c;\u4f46\u5b9e\u9645\u4e2d\u540d\u79f0\u670d\u52a1\u5668\u6709\u65f6\u4f1a\u8fd4\u56de\u8fd9\u6837\u7684 IP \u5730\u5740\u3002<\/p>\n<p>\u5728 Windows \u4e0a&#xff0c;ListenMulticastUDP \u73b0\u5728\u652f\u6301 IPv6 \u5730\u5740\u3002<\/p>\n<p>\u5728 Windows \u4e0a\u73b0\u5728\u53ef\u4ee5\u5728 os.File \u4e0e\u7f51\u7edc\u8fde\u63a5\u4e4b\u95f4\u76f8\u4e92\u8f6c\u6362\u3002\u5177\u4f53\u6765\u8bf4&#xff0c;FileConn\u3001FilePacketConn \u548c FileListener \u51fd\u6570\u73b0\u5df2\u5b9e\u73b0&#xff0c;\u8fd4\u56de\u4e0e\u6253\u5f00\u7684\u6587\u4ef6\u5bf9\u5e94\u7684\u7f51\u7edc\u8fde\u63a5\u6216\u76d1\u542c\u5668\u3002\u7c7b\u4f3c\u5730&#xff0c;TCPConn\u3001UDPConn\u3001UnixConn\u3001IPConn\u3001TCPListener \u548c UnixListener \u7684 File \u65b9\u6cd5\u73b0\u5df2\u5b9e\u73b0&#xff0c;\u8fd4\u56de\u7f51\u7edc\u8fde\u63a5\u7684\u5e95\u5c42 os.File\u3002<\/p>\n<h5>net\/http<\/h5>\n<p>\u65b0\u7684 CrossOriginProtection \u63d0\u4f9b\u5bf9\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020&#xff08;CSRF&#xff09;\u7684\u9632\u62a4&#xff0c;\u901a\u8fc7\u62d2\u7edd\u4e0d\u5b89\u5168\u7684\u8de8\u6e90\u6d4f\u89c8\u5668\u8bf7\u6c42\u6765\u5b9e\u73b0\u4fdd\u62a4\u3002\u5b83\u4f7f\u7528\u73b0\u4ee3\u6d4f\u89c8\u5668\u7684 Fetch \u5143\u6570\u636e&#xff0c;\u65e0\u9700\u4ee4\u724c\u6216 Cookie&#xff0c;\u5e76\u652f\u6301\u57fa\u4e8e\u6765\u6e90\u548c\u57fa\u4e8e\u6a21\u5f0f\u7684\u653e\u884c&#xff08;\u7ed5\u8fc7&#xff09;\u3002<\/p>\n<h5>os<\/h5>\n<p>\u5728 Windows \u4e0a&#xff0c;NewFile \u73b0\u5728\u652f\u6301\u4e3a\u5f02\u6b65 I\/O \u6253\u5f00\u7684\u53e5\u67c4&#xff08;\u5373\u5728 syscall.CreateFile \u8c03\u7528\u4e2d\u6307\u5b9a\u4e86 syscall.FILE_FLAG_OVERLAPPED&#xff09;\u3002\u8fd9\u4e9b\u53e5\u67c4\u4f1a\u4e0e Go \u8fd0\u884c\u65f6\u7684 I\/O \u5b8c\u6210\u7aef\u53e3\u5173\u8054&#xff0c;\u4e3a\u7531\u6b64\u5f97\u5230\u7684 File \u5e26\u6765\u4ee5\u4e0b\u597d\u5904&#xff1a;<\/p>\n<ul>\n<li>I\/O \u65b9\u6cd5&#xff08;File.Read\u3001File.Write\u3001File.ReadAt \u548c File.WriteAt&#xff09;\u4e0d\u4f1a\u963b\u585e\u64cd\u4f5c\u7cfb\u7edf\u7ebf\u7a0b\u3002<\/li>\n<li>\u622a\u6b62\/\u8d85\u65f6\u65b9\u6cd5&#xff08;File.SetDeadline\u3001File.SetReadDeadline \u548c File.SetWriteDeadline&#xff09;\u53d7\u652f\u6301\u3002<\/li>\n<\/ul>\n<p>\u6b64\u6539\u8fdb\u5bf9\u5728 Windows \u4e0a\u901a\u8fc7\u547d\u540d\u7ba1\u9053\u901a\u4fe1\u7684\u5e94\u7528\u5c24\u5176\u6709\u5229\u3002<\/p>\n<p>\u6ce8\u610f&#xff0c;\u67d0\u4e2a\u53e5\u67c4\u4e00\u6b21\u53ea\u80fd\u5173\u8054\u5230\u4e00\u4e2a\u5b8c\u6210\u7aef\u53e3\u3002\u5982\u679c\u4f20\u9012\u7ed9 NewFile \u7684\u53e5\u67c4\u5df2\u4e0e\u67d0\u4e2a\u5b8c\u6210\u7aef\u53e3\u5173\u8054&#xff0c;\u5219\u8fd4\u56de\u7684 File \u4f1a\u964d\u7ea7\u4e3a\u540c\u6b65 I\/O \u6a21\u5f0f\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b&#xff0c;I\/O \u65b9\u6cd5\u5c06\u963b\u585e\u64cd\u4f5c\u7cfb\u7edf\u7ebf\u7a0b&#xff0c;\u622a\u6b62\/\u8d85\u65f6\u65b9\u6cd5\u4e5f\u4e0d\u4f1a\u751f\u6548\u3002<\/p>\n<p>DirFS \u548c Root.FS \u8fd4\u56de\u7684\u6587\u4ef6\u7cfb\u7edf\u5b9e\u73b0\u4e86\u65b0\u7684 io\/fs.ReadLinkFS \u63a5\u53e3\u3002CopyFS \u5728\u590d\u5236\u5b9e\u73b0\u4e86 io\/fs.ReadLinkFS \u7684\u6587\u4ef6\u7cfb\u7edf\u65f6\u652f\u6301\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n<p>Root \u7c7b\u578b\u8fd8\u652f\u6301\u4ee5\u4e0b\u9644\u52a0\u65b9\u6cd5&#xff1a;<br \/>\nRoot.Chmod<br \/>\nRoot.Chown<br \/>\nRoot.Chtimes<br \/>\nRoot.Lchown<br \/>\nRoot.Link<br \/>\nRoot.MkdirAll<br \/>\nRoot.ReadFile<br \/>\nRoot.Readlink<br \/>\nRoot.RemoveAll<br \/>\nRoot.Rename<br \/>\nRoot.Symlink<br \/>\nRoot.WriteFile<\/p>\n<h5>reflect<\/h5>\n<p>\u65b0\u7684 TypeAssert \u51fd\u6570\u5141\u8bb8\u5c06\u4e00\u4e2a Value \u76f4\u63a5\u8f6c\u6362\u4e3a\u6307\u5b9a\u7c7b\u578b\u7684 Go \u503c\u3002 \u8fd9\u7c7b\u4f3c\u4e8e\u5bf9 Value.Interface \u7684\u7ed3\u679c\u8fdb\u884c\u7c7b\u578b\u65ad\u8a00&#xff0c;\u4f46\u53ef\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u5185\u5b58\u5206\u914d\u3002<\/p>\n<h5>regexp\/syntax<\/h5>\n<p>\\\\p{name} \u548c \\\\P{name} \u5b57\u7b26\u7c7b\u8bed\u6cd5\u73b0\u5728\u63a5\u53d7\u540d\u79f0 Any\u3001ASCII\u3001Assigned\u3001Cn \u548c LC&#xff0c;\u4ee5\u53ca\u50cf \\\\p{Letter}&#xff08;\u5bf9\u5e94 \\\\pL&#xff09;\u8fd9\u6837\u7684 Unicode \u7c7b\u522b\u522b\u540d\u3002\u9075\u5faa Unicode TR18&#xff0c;\u5b83\u4eec\u73b0\u5728\u4e5f\u4f7f\u7528\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u540d\u79f0\u67e5\u627e&#xff0c;\u5e76\u5ffd\u7565\u7a7a\u683c\u3001\u4e0b\u5212\u7ebf\u548c\u8fde\u5b57\u7b26\u3002<\/p>\n<h5>runtime<\/h5>\n<p>\u901a\u8fc7 AddCleanup \u5b89\u6392\u7684\u6e05\u7406\u51fd\u6570\u73b0\u5728\u4f1a\u5e76\u53d1\u5e76\u884c\u6267\u884c&#xff0c;\u8fd9\u4f7f\u5f97\u5728\u50cf unique \u5305\u90a3\u6837\u7684\u9ad8\u5f3a\u5ea6\u573a\u666f\u4e0b\u4f7f\u7528\u6e05\u7406\u529f\u80fd\u66f4\u52a0\u53ef\u884c\u3002\u6ce8\u610f&#xff0c;\u5982\u679c\u67d0\u4e2a\u6e05\u7406\u51fd\u6570\u9700\u8981\u957f\u65f6\u95f4\u6267\u884c\u6216\u53ef\u80fd\u963b\u585e&#xff0c;\u4ecd\u5e94\u5c06\u5176\u5de5\u4f5c\u8f6c\u5230\u65b0\u7684 goroutine \u4e2d&#xff0c;\u4ee5\u907f\u514d\u963b\u585e\u6e05\u7406\u961f\u5217\u3002<\/p>\n<p>\u65b0\u589e\u7684 GODEBUG&#061;checkfinalizers&#061;1 \u8bbe\u7f6e\u6709\u52a9\u4e8e\u53d1\u73b0\u4e0e finalizer \u548c cleanup \u76f8\u5173\u7684\u5e38\u89c1\u95ee\u9898&#xff08;\u5982 GC \u6307\u5357\u4e2d\u6240\u8ff0&#xff09;\u3002\u5728\u8be5\u6a21\u5f0f\u4e0b&#xff0c;\u8fd0\u884c\u65f6\u4f1a\u5728\u6bcf\u6b21\u5783\u573e\u56de\u6536\u5468\u671f\u8fd0\u884c\u8bca\u65ad&#xff0c;\u5e76\u5b9a\u671f\u5c06 finalizer \u961f\u5217\u548c cleanup \u961f\u5217\u7684\u957f\u5ea6\u62a5\u544a\u5230 stderr&#xff0c;\u4ee5\u4fbf\u8bc6\u522b\u8fd0\u884c\u65f6\u95f4\u8fc7\u957f\u7684 finalizer \u6216 cleanup \u7684\u95ee\u9898\u3002\u66f4\u591a\u7ec6\u8282\u8bf7\u53c2\u89c1 GODEBUG \u6587\u6863\u3002<\/p>\n<p>\u65b0\u589e\u7684 SetDefaultGOMAXPROCS \u51fd\u6570\u4f1a\u5c06 GOMAXPROCS \u8bbe\u7f6e\u4e3a\u8fd0\u884c\u65f6\u7684\u9ed8\u8ba4\u503c&#xff0c;\u5c31\u597d\u50cf\u6ca1\u6709\u8bbe\u7f6e GOMAXPROCS \u73af\u5883\u53d8\u91cf\u4e00\u6837\u3002\u5f53 GOMAXPROCS \u73af\u5883\u53d8\u91cf\u6216\u5148\u524d\u5bf9 GOMAXPROCS \u7684\u8c03\u7528\u7981\u7528\u4e86\u65b0\u7684\u9ed8\u8ba4\u503c\u65f6&#xff0c;\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u91cd\u65b0\u542f\u7528\u8be5\u9ed8\u8ba4\u503c\u3002<\/p>\n<h5>runtime\/pprof<\/h5>\n<p>\u9488\u5bf9\u8fd0\u884c\u65f6\u5185\u90e8\u9501\u7684\u4e89\u7528\u7684 mutex \u914d\u7f6e\u6587\u4ef6\u73b0\u5728\u4f1a\u6b63\u786e\u5730\u6307\u5411\u5bfc\u81f4\u5ef6\u8fdf\u7684\u4e34\u754c\u533a\u7684\u7ed3\u675f\u4f4d\u7f6e\u3002\u8fd9\u4e0e\u5bf9 sync.Mutex \u503c\u4e89\u7528\u65f6\u914d\u7f6e\u6587\u4ef6\u7684\u884c\u4e3a\u4e00\u81f4\u3002\u7528\u4e8e GODEBUG \u7684 runtimecontentionstacks \u8bbe\u7f6e&#xff08;\u6b64\u524d\u53ef\u7528\u4e8e\u5bf9\u8be5\u90e8\u5206\u914d\u7f6e\u6587\u4ef6\u9009\u62e9 Go 1.22 \u81f3 1.24 \u7684\u975e\u901a\u5e38\u884c\u4e3a&#xff09;\u73b0\u5df2\u79fb\u9664\u3002<\/p>\n<h5>sync<\/h5>\n<p>\u65b0\u7684 WaitGroup.Go \u65b9\u6cd5\u4f7f\u521b\u5efa\u5e76\u5bf9 goroutine \u8fdb\u884c\u8ba1\u6570\u7684\u5e38\u89c1\u6a21\u5f0f\u66f4\u52a0\u65b9\u4fbf\u3002<\/p>\n<h5>testing<\/h5>\n<p>\u65b0\u7684\u65b9\u6cd5 T.Attr\u3001B.Attr \u548c F.Attr \u4f1a\u5411\u6d4b\u8bd5\u65e5\u5fd7\u8bb0\u5f55\u4e00\u4e2a\u5c5e\u6027\u3002\u5c5e\u6027\u662f\u4e0e\u6d4b\u8bd5\u5173\u8054\u7684\u4efb\u610f\u952e\u503c\u5bf9\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;\u5728\u540d\u4e3a TestF \u7684\u6d4b\u8bd5\u4e2d&#xff0c;t.Attr(\u201ckey\u201d, \u201cvalue\u201d) \u4f1a\u8f93\u51fa&#xff1a;<\/p>\n<p>&#061;&#061;&#061; ATTR  TestF key value<\/p>\n<p>\u4f7f\u7528 -json \u6807\u5fd7\u65f6&#xff0c;\u5c5e\u6027\u4f1a\u4f5c\u4e3a\u65b0\u7684 \u201cattr\u201d \u64cd\u4f5c\u51fa\u73b0\u3002<\/p>\n<p>T\u3001B \u548c F \u7684\u65b0\u65b9\u6cd5 Output \u63d0\u4f9b\u4e86\u4e00\u4e2a io.Writer&#xff0c;\u5199\u5165\u4e0e TB.Log \u76f8\u540c\u7684\u6d4b\u8bd5\u8f93\u51fa\u6d41\u3002\u4e0e TB.Log \u4e00\u6837&#xff0c;\u8f93\u51fa\u4f1a\u7f29\u8fdb&#xff0c;\u4f46\u4e0d\u4f1a\u5305\u542b\u6587\u4ef6\u540d\u548c\u884c\u53f7\u3002<\/p>\n<p>AllocsPerRun \u51fd\u6570\u73b0\u5728\u5728\u6709\u5e76\u884c\u6d4b\u8bd5\u8fd0\u884c\u65f6\u4f1a panic\u3002\u82e5\u6709\u5176\u4ed6\u6d4b\u8bd5\u5e76\u884c\u8fd0\u884c&#xff0c;AllocsPerRun \u7684\u7ed3\u679c\u672c\u8d28\u4e0a\u662f\u4e0d\u7a33\u5b9a\u7684&#xff1b;\u65b0\u7684 panic \u884c\u4e3a\u6709\u52a9\u4e8e\u53d1\u73b0\u6b64\u7c7b\u9519\u8bef\u3002<\/p>\n<h5>testing\/fstest<\/h5>\n<p>MapFS \u5b9e\u73b0\u4e86\u65b0\u7684 io\/fs.ReadLinkFS \u63a5\u53e3\u3002TestFS \u5982\u679c\u5b9e\u73b0\u4e86\u8be5\u63a5\u53e3&#xff0c;\u4f1a\u9a8c\u8bc1 io\/fs.ReadLinkFS \u7684\u529f\u80fd\u3002\u4e3a\u4e86\u907f\u514d\u4e0d\u53d7\u9650\u5236\u7684\u9012\u5f52&#xff0c;TestFS \u5c06\u4e0d\u518d\u8ddf\u968f\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n<h5>unicode<\/h5>\n<p>\u65b0\u7684 CategoryAliases \u6620\u5c04\u63d0\u4f9b\u5bf9\u7c7b\u522b\u522b\u540d\u7684\u8bbf\u95ee&#xff0c;\u4f8b\u5982 \u201cLetter\u201d \u5bf9\u5e94 \u201cL\u201d\u3002<\/p>\n<p>\u65b0\u589e\u7684\u7c7b\u522b Cn \u548c LC \u5206\u522b\u5b9a\u4e49\u4e86\u672a\u5206\u914d\u7684\u7801\u70b9\u548c\u6709\u5927\u5c0f\u5199\u533a\u5206\u7684\u5b57\u6bcd\u3002\u5b83\u4eec\u672c\u6765\u5c31\u662f Unicode \u5b9a\u4e49\u7684\u4e00\u90e8\u5206&#xff0c;\u4f46\u5728\u65e9\u671f\u7684 Go \u7248\u672c\u4e2d\u88ab\u4e0d\u5c0f\u5fc3\u9057\u6f0f\u3002C \u7c7b\u522b\u73b0\u5728\u5305\u542b\u4e86 Cn&#xff0c;\u8fd9\u610f\u5473\u7740\u5b83\u5df2\u5c06\u6240\u6709\u672a\u5206\u914d\u7684\u7801\u70b9\u7eb3\u5165\u5176\u4e2d\u3002<\/p>\n<h5>unique<\/h5>\n<p>unique \u5305\u73b0\u5728\u4ee5\u66f4\u79ef\u6781\u3001\u66f4\u9ad8\u6548\u4e14\u5e76\u884c\u7684\u65b9\u5f0f\u56de\u6536\u5df2\u9a7b\u7559&#xff08;interned&#xff09;\u7684\u503c\u3002\u56e0\u6b64&#xff0c;\u5f53\u9a7b\u7559\u5927\u91cf\u771f\u6b63\u552f\u4e00\u7684\u503c\u65f6&#xff0c;\u4f7f\u7528 Make \u7684\u5e94\u7528\u7a0b\u5e8f\u66f4\u4e0d\u5bb9\u6613\u51fa\u73b0\u5185\u5b58\u66b4\u589e\u3002<\/p>\n<p>\u4e4b\u524d&#xff0c;\u4f20\u5165 Make \u4e14\u5305\u542b Handle \u7684\u503c\u9700\u8981\u591a\u6b21\u5783\u573e\u56de\u6536\u5468\u671f\u624d\u80fd\u56de\u6536&#xff0c;\u6b21\u6570\u4e0e Handle \u503c\u94fe\u7684\u6df1\u5ea6\u6210\u6b63\u6bd4\u3002\u73b0\u5728&#xff0c;\u8fd9\u4e9b\u503c\u4e00\u65e6\u4e0d\u518d\u4f7f\u7528&#xff0c;\u4f1a\u5728\u5355\u4e2a\u56de\u6536\u5468\u671f\u5185\u88ab\u53ca\u65f6\u56de\u6536\u3002<\/p>\n<h3>\u5e73\u53f0\u652f\u6301<\/h3>\n<h4>Darwin<\/h4>\n<p>\u5982\u540c\u5728 Go 1.24 \u7684\u53d1\u5e03\u8bf4\u660e\u4e2d\u6240\u8ff0&#xff0c;Go 1.25 \u9700\u8981 macOS 12 Monterey \u6216\u66f4\u9ad8\u7248\u672c&#xff0c;\u4e0d\u518d\u652f\u6301\u66f4\u65e9\u7684\u7cfb\u7edf\u7248\u672c\u3002<\/p>\n<h4>Windows<\/h4>\n<p>Go 1.25 \u662f\u6700\u540e\u4e00\u4e2a\u5305\u542b\u6709\u7f3a\u9677\u7684 32 \u4f4d windows\/arm \u7aef\u53e3&#xff08;GOOS&#061;windows GOARCH&#061;arm&#xff09;\u7684\u7248\u672c&#xff0c;\u8be5\u7aef\u53e3\u5c06\u5728 Go 1.26 \u4e2d\u88ab\u79fb\u9664\u3002<\/p>\n<h4>Loong64<\/h4>\n<p>linux\/loong64 \u7aef\u53e3\u73b0\u5728\u652f\u6301\u6570\u636e\u7ade\u4e89\u68c0\u6d4b\u5668&#xff08;race detector&#xff09;&#xff0c;\u53ef\u4ee5\u901a\u8fc7 runtime.SetCgoTraceback \u4ece C \u4ee3\u7801\u6536\u96c6\u56de\u6eaf\u4fe1\u606f&#xff0c;\u5e76\u652f\u6301\u4f7f\u7528 internal \u94fe\u63a5\u6a21\u5f0f\u94fe\u63a5 cgo \u7a0b\u5e8f\u3002<\/p>\n<h4>RISC-V<\/h4>\n<p>linux\/riscv64 \u7aef\u53e3\u73b0\u5728\u652f\u6301 plugin \u6784\u5efa\u6a21\u5f0f\u3002GORISCV64 \u73af\u5883\u53d8\u91cf\u73b0\u5728\u63a5\u53d7\u4e00\u4e2a\u65b0\u503c rva23u64&#xff0c;\u7528\u4e8e\u9009\u62e9 RVA23U64 \u7528\u6237\u6a21\u5f0f\u5e94\u7528\u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002\u6700\u65b0\u7684 Go \u53d1\u884c\u7248 1.25 \u4e8e 2025 \u5e74 8 \u6708\u53d1\u5e03\uff0c\u8ddd\u79bb Go 1.24 \u5df2\u8fc7\u516d\u4e2a\u6708\u3002\u672c\u6b21\u7248\u672c\u7684\u5927\u90e8\u5206\u6539\u52a8\u96c6\u4e2d\u5728\u5de5\u5177\u94fe\u3001\u8fd0\u884c\u65f6\u548c\u6807\u51c6\u5e93\u7684\u5b9e\u73b0\u4e0a\u3002\u548c\u4ee5\u5f80\u4e00\u6837\uff0c\u672c\u6b21\u53d1\u5e03\u9075\u5faa Go 1 \u7684\u517c\u5bb9\u6027\u627f\u8bfa\u3002\u6211\u4eec\u9884\u8ba1\u51e0\u4e4e\u6240\u6709\u7684 Go \u7a0b\u5e8f\u4ecd\u7136\u53ef\u4ee5\u50cf\u4ee5\u524d\u4e00\u6837\u7f16\u8bd1\u5e76\u8fd0\u884c\u3002<\/p>\n","protected":false},"author":2,"featured_media":55654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[746,93,190,4084],"topic":[],"class_list":["post-55656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-golang","tag-json","tag-190","tag-vschatgpt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/55656.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002\u6700\u65b0\u7684 Go \u53d1\u884c\u7248 1.25 \u4e8e 2025 \u5e74 8 \u6708\u53d1\u5e03\uff0c\u8ddd\u79bb Go 1.24 \u5df2\u8fc7\u516d\u4e2a\u6708\u3002\u672c\u6b21\u7248\u672c\u7684\u5927\u90e8\u5206\u6539\u52a8\u96c6\u4e2d\u5728\u5de5\u5177\u94fe\u3001\u8fd0\u884c\u65f6\u548c\u6807\u51c6\u5e93\u7684\u5b9e\u73b0\u4e0a\u3002\u548c\u4ee5\u5f80\u4e00\u6837\uff0c\u672c\u6b21\u53d1\u5e03\u9075\u5faa Go 1 \u7684\u517c\u5bb9\u6027\u627f\u8bfa\u3002\u6211\u4eec\u9884\u8ba1\u51e0\u4e4e\u6240\u6709\u7684 Go \u7a0b\u5e8f\u4ecd\u7136\u53ef\u4ee5\u50cf\u4ee5\u524d\u4e00\u6837\u7f16\u8bd1\u5e76\u8fd0\u884c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55656.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T22:54:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813225422-689d179ee832d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55656.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55656.html\",\"name\":\"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T22:54:24+00:00\",\"dateModified\":\"2025-08-13T22:54:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55656.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55656.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55656.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/55656.html","og_locale":"zh_CN","og_type":"article","og_title":"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb31\u6b21\u3002\u6700\u65b0\u7684 Go \u53d1\u884c\u7248 1.25 \u4e8e 2025 \u5e74 8 \u6708\u53d1\u5e03\uff0c\u8ddd\u79bb Go 1.24 \u5df2\u8fc7\u516d\u4e2a\u6708\u3002\u672c\u6b21\u7248\u672c\u7684\u5927\u90e8\u5206\u6539\u52a8\u96c6\u4e2d\u5728\u5de5\u5177\u94fe\u3001\u8fd0\u884c\u65f6\u548c\u6807\u51c6\u5e93\u7684\u5b9e\u73b0\u4e0a\u3002\u548c\u4ee5\u5f80\u4e00\u6837\uff0c\u672c\u6b21\u53d1\u5e03\u9075\u5faa Go 1 \u7684\u517c\u5bb9\u6027\u627f\u8bfa\u3002\u6211\u4eec\u9884\u8ba1\u51e0\u4e4e\u6240\u6709\u7684 Go \u7a0b\u5e8f\u4ecd\u7136\u53ef\u4ee5\u50cf\u4ee5\u524d\u4e00\u6837\u7f16\u8bd1\u5e76\u8fd0\u884c\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/55656.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T22:54:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813225422-689d179ee832d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55656.html","url":"https:\/\/www.wsisp.com\/helps\/55656.html","name":"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T22:54:24+00:00","dateModified":"2025-08-13T22:54:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55656.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55656.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55656.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"go 1.25.0\u53d1\u5e03\uff1a\u5bb9\u5668\u611f\u77e5\u8c03\u5ea6\u3001\u5b9e\u9a8c\u6027GC\u4e0eJSON v2\u7b49\u591a\u9879\u9769\u65b0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=55656"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55656\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/55654"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55656"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}