{"id":44133,"date":"2022-12-17T07:48:50","date_gmt":"2023-11-06T22:37:47","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/"},"modified":"2024-04-29T05:41:34","modified_gmt":"2024-04-28T21:41:34","slug":"2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/","title":{"rendered":"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55"},"content":{"rendered":"<p>\u4ee5\u4e0b\u662f\u6211\u5bf9 golang\/go \u4e3b\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u8fdb\u884c\u4e86\u4e2a\u4eba\u5173\u6ce8\u5e76\u5217\u51fa\u7684\u5217\u8868\u3002<\/p>\n<p>\u8fd9\u662f\u4e0a\u6b21\u5236\u4f5c\u7684\u6e05\u5355\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5c3d\u7ba1\u6211\u5728\u7b80\u5355\u89e3\u91ca\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e9b\u5185\u5bb9\uff0c\u4f46\u53ef\u80fd\u5b58\u5728\u8bef\u89e3\u6216\u9519\u8bef\u3002<\/p>\n<h2>\u4e3b\u9898<\/h2>\n<h2>\u8bf7\u63d0\u4ea4<\/h2>\n<h3>2022\u5e744\u67081\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u6955\u5186\u66f2\u7dda\u6697\u53f7\u3067\u4f7f\u7528\u3059\u308bP-256\u306e\u51e6\u7406\u306b\u304a\u3044\u3066\u3001\u30d1\u30cb\u30c3\u30af\u3092\u5f15\u304d\u8d77\u3053\u3059\u554f\u984c\u304c\u4fee\u6b63\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u4fee\u6b63\u306f\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u3055\u308c\u3001Go 1.17.9\u304a\u3088\u3073Go 1.18.1\u304c\u65e2\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u822c\u800c\u8a00\uff0c\u5982\u679c\u5728 Go \u4e2d\u5b58\u5728\u7279\u5b9a\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u6216\u4f53\u7cfb\u7ed3\u6784\u7684\u5904\u7406\uff0c\u5219\u901a\u5e38\u4f7f\u7528\u6587\u4ef6\u540d\u6307\u5b9a GOOS \u548c GOARCH\u3002<br \/>\n\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7801\u76ee\u5f55\u4e2d\u7684\u6807\u7b7e\u901a\u8fc7 build.Package \u7684 AllTags \u67e5\u627e\uff0c\u4f46\u4fee\u590d\u4e86\u4ec5\u5728\u6307\u5b9a\u4e86 GOOS \u548c GOARCH\uff0c\u5e76\u4e14\u8fd0\u884c\u73af\u5883\u4e0e GOARCH \u5339\u914d\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0d\u5305\u542b GOOS \u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u6709\u53ef\u7528\u7684AVX2\uff08\u5f53GOAMD64\u5927\u4e8e3\u65f6\uff09\uff0c\u5c06\u4f18\u5316\u7528\u4e8e\u6e05\u96f6\u8fde\u7eed\u5185\u5b58\u7684\u8fd0\u884c\u65f6\u51fd\u6570memclrNoHeapPointers()\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7531\u4e8e Go 1.18 \u5f15\u5165\u4e86\u65b0\u7684 GC Pacer\uff0c\u56e0\u6b64\u5220\u9664\u4e86\u65e7\u4ee3\u7801\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4fee\u590d\u4e86\u5c06Unicode U+007F\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9strconv.Quote()\u51fd\u6570\u65f6\uff0c\u63a7\u5236\u5b57\u7b26(DELETE)\u6ca1\u6709\u88ab\u8f6c\u4e49\u7684\u95ee\u9898\u30024<\/p>\n<p>&nbsp;<\/p>\n<p>Go 1.18\u4fee\u590d\u4e86\u5f53\u4f7f\u7528go work use\u65f6\uff0c\u5982\u679c\u4f20\u9012\u7684\u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55\u800c\u662f\u4e00\u4e2a\u6587\u4ef6\u540d\uff0c\u5c06\u4f1a\u53d1\u751fpanic\u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5f53HTTP\u54cd\u5e94\u72b6\u6001\u4e3a301\u4e14\u6ca1\u6709Location\u6807\u5934\u65f6\uff0c\u73b0\u5df2\u89e3\u51b3\u65e0\u6cd5\u83b7\u53d6\u54cd\u5e94\u5185\u5bb9\u7684\u95ee\u9898\u3002\u539f\u672c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u72b6\u6001301\u5e94\u8be5\u4e0eLocation\u6807\u5934\u4e00\u8d77\u4f7f\u7528\uff08\u6839\u636eRFC 7231\u4e2d\u7684\u89c4\u5b9a\uff09\uff0c\u4f46\u7531\u4e8e\u5b58\u5728\u4e0d\u8bbe\u7f6eLocation\u6807\u5934\u7684\u670d\u52a1\u5668\uff08\u5982Amazon S3\uff09\uff0c\u56e0\u6b64\u5df2\u505a\u4e86\u76f8\u5e94\u7684\u5904\u7406\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5df2\u4e3a arm64 \u6dfb\u52a0\u4e86\u6307\u4ee4\u652f\u6301\uff0c\u4f3c\u4e4e\u662f\u56e0\u4e3a gVisor \u9700\u8981\u5b83\u3002<\/p>\n<h3>2022\u5e744\u67082\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u662f\u9488\u5bf9Go\u6587\u6863\u683c\u5f0f\u66f4\u6539\u7684\u4e00\u90e8\u5206\u5de5\u4f5c\u3002\u5728Go 1.19\u4e2d\uff0cgofmt\u5c06\u652f\u6301\u6587\u6863\u6ce8\u91ca\uff0c\u5e76\u6dfb\u52a0\u4e86\u7528\u4e8e\u89e3\u6790\u8bed\u6cd5\u7684\u5305\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728Go 1.18\u4e2d\u4fee\u590d\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u8be5\u9519\u8bef\u4f1a\u5728\u4f7f\u7528Go 1.13\u4e4b\u524d\u7684\u73af\u5883\u4e2d\u9047\u5230\u672a\u6307\u5b9a\u7c7b\u578b\u7684\u79fb\u4f4d\u64cd\u4f5c\u65f6\u53d1\u51fa\u8b66\u544a\u3002\u8fd9\u662f\u5728\u4f7f\u7528\u4f7f\u7528Go 1.18\u6784\u5efa\u7684gopls\u5bf9Go 1.11\u4ee3\u7801\u8fdb\u884c\u4fee\u6b63\u65f6\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<h3>2022\u5e744\u67084\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u5728\u7f51\u7edc\u4e2d\uff0c\u5f53\u53d6\u6d88\u6216\u8d85\u65f6\u53d1\u751f\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 errors.Is(err,context.Canceled) \u6216 errors.Is(err,context.DeadlineExceeded) \u6765\u5224\u65ad\u9519\u8bef\u3002\u8fd9\u4e0e\u4e4b\u524d\u5df2\u7ecf\u5b58\u5728\u7684 net.Error \u662f\u517c\u5bb9\u7684\uff0c\u5e76\u4e14\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u30029<\/p>\n<p>&nbsp;<\/p>\n<p>Windows\u5e73\u53f0\u4e0a\u4e5f\u8fdb\u884c\u4e86\u4fee\u590d\u4ee5\u5904\u7406os.Interrupt\u3002\u9057\u61be\u7684\u662f\uff0c\u8fd9\u4e2a\u4fee\u590d\u5728\u540e\u6765\u88ab\u64a4\u9500\u4e86\u300210<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728 Go 1.18 \u4e2d\uff0c\u4fee\u590d\u4e86\u4f20\u9012\u7ed9 go work use -r \u7684\u4e0d\u5b58\u5728\u7684\u76ee\u5f55\u540d\u4f1a\u5bfc\u81f4\u6050\u614c\u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5f53\u5d4c\u5957\u6b63\u5219\u8868\u8fbe\u5f0f\u8d85\u8fc7\u6df1\u5ea6\u9650\u5236(1000)\u65f6\uff0c\u65b0\u589e\u4e86\u4e00\u4e2a\u540d\u4e3aErrInvalidDepth\u7684\u9519\u8bef\u5b9a\u4e49\u3002\u5728Go 1.18\u53d1\u5e03\u4e4b\u524d\uff0c\u6df1\u5ea6\u9650\u5236\u68c0\u67e5\u5df2\u5728Go 1.16\u548cGo 1.17\u8fdb\u884c\u4e86\u56de\u6eaf\u79fb\u690d\u3002\u7136\u800c\uff0c\u5728\u8fd9\u4e2a\u65f6\u5019\u8fd8\u662f\u4f7f\u7528\u73b0\u6709\u7684\u9519\u8bef\u5f62\u5f0f\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0cErrInvalidDepth \u5df2\u7ecf\u88ab\u53e6\u4e00\u4e2a\u63d0\u4ea4\u91cd\u547d\u540d\u4e3aErrNestingDepth\u4e86\u3002\u5728\u539f\u59cb\u63d0\u6848\u4e2d\uff0cErrNestingDepth \u5e94\u8be5\u662f\u88ab\u9519\u8bef\u5730\u8868\u793a\u4e3a ErrInvalidDepth\u3002<\/p>\n<h3>2022\u5e744\u67085\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u4eceGo 1.18\u5f00\u59cb\uff0c\u5bf9\u4e8e\u4ee5SHA-1\u683c\u5f0f\u7b7e\u540d\u7684\u8bc1\u4e66\u7684\u9a8c\u8bc1\u5df2\u88ab\u7981\u7528\u3002\u7136\u800c\uff0c\u7531\u4e8eOCSP\u54cd\u5e94\u6216CRL\u4e5f\u88ab\u7981\u7528\uff0c\u5bfc\u81f4\u4e0eWebPKI\u7684\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u56e0\u6b64\u4fee\u590d\u4ec5\u9650\u4e8e\u8bc1\u4e66\u3002\u6b64\u4fee\u590d\u8fd8\u88ab\u79fb\u690d\u5230\u4e86Go 1.18.1\u7248\u672c\u4e2d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>reflect.Type.NumMethod()\u548creflect.Value.NumMethod()\u7684\u6ce8\u91ca\u5df2\u7ecf\u88ab\u4fee\u6539\u3002<br \/>\n\u5728\u4f7f\u7528\u5b83\u4eec\u4e0e\u63a5\u53e3\u4e00\u8d77\u65f6\uff0c\u5b58\u5728\u6587\u6863\u4e0e\u5b9e\u9645\u884c\u4e3a\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\uff0c\u4f46\u5df2\u7ecf\u91c7\u53d6\u4e86\u4fee\u6b63\u6587\u6863\u7684\u63aa\u65bd\u3002<br \/>\n\u539f\u672c\u8ba1\u5212\u5728Go 1.16\u4e2d\u4fee\u590d\u6b64\u95ee\u9898\u4f5c\u4e3a\u7f3a\u9677\uff0c\u4f46\u7531\u4e8e\u517c\u5bb9\u6027\u95ee\u9898\u800c\u88ab\u53d6\u6d88\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u65b0\u7248\u672c\u4e2d\u53ef\u4ee5\u6bd4\u8f83\u4e0d\u53ef\u6bd4\u8f83\u7684\u503c\uff08\u5982\u6620\u5c04\u6216\u5207\u7247\uff09\u548cnil\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u6bd4\u8f83\u76f8\u540c\u5927\u5c0f\u7684\u6570\u7ec4\uff08\u4e0d\u662f\u5207\u7247\uff09\u65f6\uff0c\u4f7f\u7528\u5c55\u5f00\u8fdb\u884c\u4f18\u5316\u7684\u4ee3\u7801\u751f\u6210\u88ab\u6267\u884c\u3002<\/p>\n<h3>2022\u5e7404\u670806\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u8bc1\u4e66\u7684\u9a8c\u8bc1\u8fc7\u7a0b\u5df2\u7ecf\u88ab\u4fee\u6b63\u300219 20<\/p>\n<p>&nbsp;<\/p>\n<p>\u7531\u4e8e\u54c8\u5e0c\/\u6620\u5c04\u54c8\u5e0c\u7684\u5f00\u9500\u5f88\u5927\uff0c\u56e0\u6b64\u5df2\u7ecf\u6dfb\u52a0\u4e86\u76f4\u63a5\u4ece\u5b57\u7b26\u4e32\u6216\u5b57\u8282\u5e8f\u5217\u4e2d\u83b7\u53d6\u54c8\u5e0c\u503c\u7684\u51fd\u6570\u3002\u4e8c\u5341\u4e00<\/p>\n<h3>2022\u5e744\u67087\u65e5\u3002<\/h3>\n<p>&nbsp;<\/p>\n<p>\u5728NetBSD\u73af\u5883\u4e2d\u8fdb\u884c\u7684\u6d4b\u8bd5\u4fee\u590d\u4e86\u7279\u5b9a\u7684\u9519\u8bef\u3002 \u8fd9\u662fGo\u7684\u6838\u5fc3\u6d4b\u8bd5\uff0c\u5bf9\u5b9e\u73b0\u6ca1\u6709\u4efb\u4f55\u5f71\u54cd\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728 riscv64 \u67b6\u6784\u4e0a\u542f\u7528\u4e86\u57fa\u4e8e\u5bc4\u5b58\u5668\u7684\u51fd\u6570\u8c03\u7528\u7ea6\u5b9a\u3002<br \/>\n\u5b83\u662f\u7ee7 amd64\u3001arm64 \u548c ppc64 \u4e4b\u540e\u7684\u4e0b\u4e00\u4ee3\u67b6\u6784\u3002<br \/>\n\uff08\u9ed8\u8ba4\u542f\u7528\u5e76\u975e\u7531\u6b64\u63d0\u4ea4\uff0c\u800c\u662f\u5728\u53e6\u4e00\u4e2a\u63d0\u4ea4\u4e2d\u8fdb\u884c\u7684\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728sort\u5305\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e2a\u540d\u4e3aFind()\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u8fdb\u884c\u4e8c\u5206\u67e5\u627e\u3002\u867d\u7136\u5df2\u7ecf\u5b58\u5728sort.Search()\u51fd\u6570\uff0c\u4f46\u662f\u8fd9\u6b21\u6dfb\u52a0\u7684\u51fd\u6570\u8fd8\u6539\u53d8\u4e86\u6bd4\u8f83\u51fd\u6570\u7684\u7c7b\u578b\uff0c\u5e76\u4e14\u8fd8\u4f1a\u8fd4\u56de\u662f\u5426\u5b58\u5728\u5339\u914d\u7684\u9879\u3002<\/p>\n<h3>2022\u5e744\u670812\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u91cc\u589e\u52a0\u4e86\u4e00\u4e2adoc\/comment\u5305\u3002\u5c3d\u7ba1\u6ca1\u6709\u8be6\u7ec6\u8bf4\u660e\uff0c\u4f46\u8fdb\u884c\u4e86\u8bb8\u591a\u66f4\u6539\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5bf9\u4e8e\u5df2\u5173\u95ed\u7684\u901a\u9053\uff0c\u63a5\u6536\u5904\u7406\u7684\u6027\u80fd\u5f97\u5230\u4e86\u6539\u5584\u3002 25<\/p>\n<h3>2022\u5e744\u670813\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u4fee\u590d\u4e86\u5728\u7ed9\u5b9a\u5305\u542b\u9519\u8bef\u7684\u5927\u578bPEM\u6587\u4ef6\u65f6\u53ef\u80fd\u5bfc\u81f4\u5806\u6808\u6ea2\u51fa\u7684\u95ee\u9898\u3002\u8fd9\u4e2a\u4fee\u590d\u5df2\u7ecf\u8fdb\u884c\u4e86\u56de\u9000\uff0cGo 1.17.9\u548cGo 1.18.1\u5df2\u7ecf\u53d1\u5e03\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4fee\u590d\u4e86\u5728 Go 1.16 \u4e2d\u6dfb\u52a0\u7684 embed \u529f\u80fd\u4e2d\uff0c\u5f53\u5c1d\u8bd5\u5d4c\u5165\u4f4d\u4e8e\u6839\u76ee\u5f55\u7684\u76ee\u5f55\u65f6\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u7684\u95ee\u9898\u3002\u8fd9\u4e2a\u95ee\u9898\u5728\u4f7f\u7528 Dockerfile \u8fdb\u884c\u6784\u5efa\u65f6\u5bb9\u6613\u9047\u5230\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Go 1.18\u6dfb\u52a0\u4e86buildvcs\u9009\u9879\uff0c\u9ed8\u8ba4\u503c\u4e5f\u4ece\u624b\u52a8\u66f4\u6539\u4e3a\u81ea\u52a8\u3002<br \/>\n\u4e4b\u524d\u7684\u9ed8\u8ba4\u503c\u4e3atrue\uff0c\u4f46\u5f53VCS\u76ee\u5f55\u5b58\u5728\u65f6\u5374\u65e0\u6cd5\u4f7f\u7528\u5de5\u5177\uff0c\u5bfc\u81f4\u6784\u5efa\u5931\u8d25\u7684\u95ee\u9898\u4f3c\u4e4e\u51fa\u73b0\u4e86\u300229<\/p>\n<h3>2022\u5e744\u670814\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30bd\u30fc\u30c8\u51e6\u7406\u306f\u3001quicksort\u304b\u3089pdqsort\uff08Pattern-defeating quicksort\uff09\u30d9\u30fc\u30b9\u306e\u5b9f\u88c5\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002\u591a\u304f\u306e\u30b1\u30fc\u30b9\uff08\u7279\u306b\u30bd\u30fc\u30c8\u6e08\u307f\u30b9\u30e9\u30a4\u30b9\uff09\u3067\u306f\u3001\u5f93\u6765\u3088\u308a\u3082\u9ad8\u901f\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h3>2022\u5e744\u670815\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4e2a\u4fee\u6539\u662f\u4e3a\u4e86\u7528\u8df3\u8f6c\u8868\u800c\u4e0d\u662f\u4e8c\u5206\u641c\u7d22\u6765\u5b9e\u73b0\u5f00\u5173\u3002\u5e76\u4e0d\u603b\u662f\u4f7f\u7528\u8df3\u8f6c\u8868\uff0c\u4f3c\u4e4e\u4e5f\u5b58\u5728\u5bf9\u53ef\u7528\u67b6\u6784\u7684\u9650\u5236\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u7f16\u8bd1\u65f6\u786e\u5b9a\u7684switch case\u5904\u7406\u5df2\u7ecf\u6539\u8fdb\u4e86\uff0c\u50cfruntime.GOOS\u8fd9\u6837\u7684\u64cd\u4f5c\u5f88\u5e38\u89c1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u5b57\u8282\u5207\u7247\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e2a\u8ffd\u52a0\u7f16\u7801\u4e3aVarint\u7684\u503c\u7684\u51fd\u6570\u3002Varint\u7f16\u7801\u662f\u5728protobuf\u4e2d\u4f7f\u7528\u7684\u683c\u5f0f\uff0c\u4f3c\u4e4e\u5728protobuf\u4e2d\u4e5f\u5b9e\u73b0\u4e86\u7c7b\u4f3c\u7684\uff08\u4f46\u7a0d\u5fae\u4f18\u5316\u4e86\u4e00\u4e9b\uff09\u51fd\u6570\u3002<\/p>\n<h3>2022\u5e744\u670816\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>http.Request.WithContext() \u51fd\u6570\u5df2\u7ecf\u5220\u9664\u4e86\u4e0d\u5fc5\u8981\u7684\u6570\u636e\u590d\u5236\u300234<\/p>\n<p>&nbsp;<\/p>\n<p>\u636e\u8bf4\uff0chttp.StatusText() \u7684\u5b9e\u73b0\u5df2\u7ecf\u4ece\u6620\u5c04\u53d8\u4e3aswitch case\u3002\u8fd9\u5c06\u6709\u671b\u5b9e\u73b0\u7f16\u8bd1\u65f6\u4f18\u5316\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u5728 macOS \u73af\u5883\u4e2d\u7684\u6b7b\u9501\u60c5\u51b5\u5df2\u7ecf\u4fee\u590d\u3002\u4f3c\u4e4e\u5728 goroutine \u7684\u62a2\u5360\u548c\u4fe1\u53f7\u5904\u7406\u7684\u7ec4\u5408\u4e2d\u5b58\u5728\u95ee\u9898\uff0c\u5df2\u5728 Go 1.17 \u548c Go 1.18 \u4e2d\u8fdb\u884c\u4e86\u8865\u4e01\u3002<\/p>\n<h3>2022\u5e744\u670817\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>reflect.Value.Type() \u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u5185\u8054\u5904\u7406\u4e86\u3002<br \/>\n\u867d\u7136\u5e76\u4e0d\u603b\u662f\u80fd\u591f\u59cb\u7ec8\u4eab\u53d7\u5185\u8054\u5904\u7406\u7684\u597d\u5904\uff0c\u4f46\u4f3c\u4e4e\u6709\u4e00\u4e9b\u5fae\u4e0d\u8db3\u9053\u7684\u6548\u679c\u3002<\/p>\n<h3>2022\u5e744\u670820\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u6839\u636e\u5e73\u53f0\u7edf\u4e00\u4e86\u4ececrypto\/rand\u751f\u6210\u5668\u4e2d\u8bfb\u53d6\u968f\u673a\u6570\u7684\u5904\u7406\u65b9\u5f0f\uff0c\u5e76\u4fee\u590d\u4e86\u4e0d\u8fdb\u884c\u7f13\u51b2\u7684\u95ee\u9898\u3002\u4ee5\u524d\u662f\u901a\u8fc7bufio\u7f13\u51b24096\u5b57\u8282\uff0c\u73b0\u5728\u6539\u4e3a\u6bcf\u6b21\u83b7\u53d6\uff0c\u8fd9\u6837\u53ef\u4ee5\u83b7\u5f97\u66f4\u65b0\u9c9c\u7684\u503c\uff0c\u5e76\u4e14\u9884\u8ba1\u5728\u591a\u6838\u5fc3\u4e0a\u83b7\u53d6\u968f\u673a\u6570\u65f6\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<h3>2022\u5e744\u670821\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u65b0\u589e\u4e86\u4e00\u4e2a\u51fd\u6570fastrand64()\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u83b7\u53d6\u968f\u673a\u7684uint64\u503c\u3002\u867d\u7136\u65e0\u6cd5\u5728\u5e38\u89c4\u7a0b\u5e8f\u4e2d\u4f7f\u7528\uff0c\u4f46\u4f3c\u4e4e\u53ef\u4ee5\u4ece\u6807\u51c6\u5e93\u7684\u67d0\u4e9b\u90e8\u5206\u4e2d\u4f7f\u7528\u3002 36 37 38<\/p>\n<h3>2022\u5e744\u670822\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u5728POSIX\u5e73\u53f0\u4e0a\uff0c\u5982\u679c\u5728exec.Cmd\u4e2d\uff0cDir\u4e0d\u4e3a\u7a7a\u4f46Env\u4e3a\u7a7a\uff0c\u5b50\u8fdb\u7a0b\u5c06\u4f1a\u628aDir\u4f5c\u4e3a\u73af\u5883\u53d8\u91cfPWD\u4f20\u9012\u8fc7\u53bb\u300239<br \/>\n\u6b64\u5916\uff0c\u8fd8\u65b0\u589e\u4e86exec.Cmd.Environ()\u51fd\u6570\uff0c\u53ef\u4ee5\u83b7\u53d6\u4f20\u9012\u7ed9\u547d\u4ee4\u7684\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5f53\u4f7f\u7528bufio.Writer.WriteString()\u5199\u5165\u8d85\u8fc7\u7f13\u51b2\u533a\u5927\u5c0f\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u5982\u679cwriter\u652f\u6301WriteString()\uff0c\u5219\u4f1a\u76f4\u63a5\u5199\u5165\u800c\u4e0d\u7ecf\u8fc7\u7f13\u51b2\u533a\uff0c\u4ece\u800c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u590d\u5236\u3002<br \/>\n\u800c\u5199\u5165[]byte\u7684Write()\u4f3c\u4e4e\u81ea\u4ee5\u524d\u5c31\u662f\u8fd9\u6837\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b63\u5728\u5bf9\u751f\u6210\u7ed3\u6784\u4f53\u548c\u6570\u7ec4\u6bd4\u8f83\u4ee3\u7801\u7684\u5904\u7406\u8fdb\u884c\u91cd\u6784\u300240<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u4e9b\u65b9\u6cd5\u73b0\u5df2\u80fd\u591f\u5728 reflect.Value \u4e2d\u8fdb\u884c\u5185\u8054\u5316\u5904\u7406\u3002\u5728\u83b7\u53d6 map \u6216\u6570\u7ec4\u957f\u5ea6\u65f6\u6709\u8f7b\u5fae\u7684\u6027\u80fd\u4e0b\u964d\uff0c\u4f46\u9664\u6b64\u4e4b\u5916\u7684\u60c5\u51b5\u4e0b\u90fd\u6709\u52a0\u901f\uff0c\u5e76\u5bf9 encoding\/json \u4ea7\u751f\u5f71\u54cd\u3002<\/p>\n<h3>2022\u5e744\u670826\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>http.MaxBytesReader\u5b9a\u4e49\u4e86http.MaxBytesError\u4f5c\u4e3a\u5176\u8fd4\u56de\u7684\u9519\u8bef\u3002\u8fd9\u6837\u53ef\u4ee5\u68c0\u67e5\u9519\u8bef\u7684\u539f\u56e0\u3002<\/p>\n<h3>2022\u5e744\u670827\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>GC\u73b0\u5728\u53d8\u4e3a\u6bcf\u4e24\u5206\u949f\u542f\u52a8\u4e00\u6b21\uff0c\u4f7f\u7528\u7684\u7a7a\u95f2\u6807\u8bb0\u5de5\u4f5c\u7ebf\u7a0b\u6570\u91cf\u6700\u591a\u4e3a1\u4e2a\uff08\u5982\u679c\u5df2\u7ecf\u5b58\u5728GC\u5de5\u4f5c\u7ebf\u7a0b\uff0c\u5219\u4e3a0\u4e2a\uff09\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u53ef\u4ee5\u907f\u514dGo\u7a0b\u5e8f\u4e2d\u51e0\u4e4e\u6ca1\u6709GC\u542f\u52a8\u65f6CPU\u5229\u7528\u7387\u6025\u5267\u4e0a\u5347\u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>GC\u7684goroutine\u5728\u54ea\u4e2a\u7ebf\u7a0b\u4e0a\u8fd0\u884c\u7684\u5224\u65ad\u5904\u7406\uff08\u8c03\u5ea6\uff09\u5df2\u7ecf\u6539\u8fdb\u4e86\u3002\u4ee5\u524d\u4f1a\u51fa\u73b0\u5c06\u5df2\u505c\u6b62\u7684\u7ebf\u7a0b\u5206\u914d\u7ed9\u5b83\u7684\u95ee\u9898\u3002<\/p>\n<h3>2022\u5e744\u670829\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u4f3c\u4e4e\u5c06Go\u8fd0\u884c\u65f6\u4ea7\u751f\u7684\u5f02\u5e38\u5206\u4e3a\u7528\u6237\u4ee3\u7801\u539f\u56e0\u548c\u5176\u4ed6\u539f\u56e0\u3002\u8fd9\u6837\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u8fdb\u884c\u95ee\u9898\u6392\u67e5\uff0c\u5e0c\u671b\u80fd\u591f\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\u3002<\/p>\n<h3>2022\u5e744\u670830\u65e5<\/h3>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u5728Go 1.18\u4e2d\u4f7f\u7528\u57fa\u4e8estring\u7684\u5b9a\u4e49\u7c7b\u578b\u4f5c\u4e3amap\u7684key\uff0creflect.Value.SetMapIndex()\u548creflect.Value.MapIndex()\u5c06\u4fee\u590d\u4e00\u4e2a\u6b63\u5e38\u7684string\u4e5f\u53ef\u4ee5\u6210\u529f\u7684\u95ee\u9898\u3002\u8fd9\u4e2a\u95ee\u9898\u5728Go 1.18\u4e2d\u5f15\u5165\u5e76\u8fdb\u884c\u4e86\u56de\u6eaf\u4fee\u590d\u3002<\/p>\n<h2>\u6742\u611f<\/h2>\n<p>\u7531\u4e8eGo 1.18\u53d1\u5e03\u7684\u5ef6\u8fdf\uff0c4\u6708\u4efd\u7684\u63d0\u4ea4\u8f83\u591a\u3002<br \/>\n\u5c3d\u7ba1\u57284\u6708\u4efd\u65f6\u5c1a\u672a\u5b8c\u6210\uff0c\u4f46Go 1.19\u53ef\u80fd\u4f1a\u5305\u542b\u4ee5\u4e0b\u53d8\u66f4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u65b0\u3057\u3044\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3 linux\/loong64 \u304c\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002 48<\/ul>\n<\/li>\n<\/ul>\n<p>BoringCrypto \u3092\u4f7f\u3046\u305f\u3081\u306e dev.boringcrypto \u30d6\u30e9\u30f3\u30c1\u3092 master \u306b\u30de\u30fc\u30b8\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002 49<\/p>\n<p>\u53e6\u5916\uff0cGo\u5f00\u53d1\u8005\u5206\u4eab\u4e86\u5173\u4e8eGo 1.19\u7684\u65b0\u529f\u80fd\u7684\u63a8\u6587\uff0c\u6211\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u3002<br \/>\n\u867d\u7136\u6211\u4e00\u76f4\u5728\u8ddf\u8e2a\u63d0\u4ea4\u8bb0\u5f55\uff0c\u4f46\u8fd8\u662f\u6f0f\u6389\u4e86\u5f88\u591a\u4e1c\u897f\u3002<\/p>\n<p>&nbsp;<\/p>\n<section>\u4ee5\u4e0b\u662f\u5bf9\u5e94\u7684\u4e2d\u6587\u7ffb\u8bd1\uff1a1. https:\/\/github.com\/golang\/go\/issues\/52075<br \/>\n2. https:\/\/github.com\/advisories\/GHSA-v5qw-m6mv-3q79<br \/>\n3. https:\/\/github.com\/golang\/go\/issues\/52053<br \/>\n4. https:\/\/github.com\/golang\/go\/issues\/52062<br \/>\n5. https:\/\/github.com\/golang\/go\/issues\/51749<br \/>\n6. https:\/\/github.com\/golang\/go\/issues\/49281<br \/>\n7. https:\/\/github.com\/golang\/go\/issues\/51082<br \/>\n8. https:\/\/github.com\/golang\/go\/issues\/52031<br \/>\n9. https:\/\/github.com\/golang\/go\/issues\/51428<br \/>\n10. https:\/\/github.com\/golang\/go\/commit\/f86f9a3038eb6db513a0ea36bc2af7a13b005e99<br \/>\n11. https:\/\/github.com\/golang\/go\/issues\/51841<br \/>\n12. https:\/\/github.com\/golang\/go\/issues\/51684<br \/>\n13. https:\/\/github.com\/golang\/go\/issues\/51112<br \/>\n14. https:\/\/github.com\/golang\/go\/commit\/575fd8817ae9817303a69065def80c574718169e<br \/>\n15. https:\/\/github.com\/golang\/go\/commit\/0bf545e51f5303ddedb0ea60f02ff221ac088fc7<br \/>\n16. https:\/\/tip.golang.org\/doc\/go1.18#sha1<br \/>\n17. https:\/\/github.com\/golang\/go\/issues\/41682#issuecomment-1072695832<br \/>\n18. https:\/\/github.com\/golang\/go\/issues\/51642<br \/>\n19. https:\/\/github.com\/golang\/go\/issues\/48869<br \/>\n20. https:\/\/github.com\/golang\/go\/issues\/45856<br \/>\n21. https:\/\/github.com\/golang\/go\/issues\/42710<br \/>\n22. https:\/\/github.com\/golang\/go\/issues\/52168<br \/>\n23. https:\/\/github.com\/golang\/go\/issues\/50340<br \/>\n24. https:\/\/github.com\/golang\/go\/issues\/51082<br \/>\n25. https:\/\/github.com\/golang\/go\/issues\/52067<br \/>\n26. https:\/\/github.com\/golang\/go\/issues\/51853<br \/>\n27. https:\/\/github.com\/advisories\/GHSA-q42m-q8hq-53rj<br \/>\n28. https:\/\/github.com\/golang\/go\/issues\/49570<br \/>\n29. https:\/\/github.com\/golang\/go\/issues\/51748<br \/>\n30. https:\/\/github.com\/golang\/go\/issues\/50154<br \/>\n31. https:\/\/github.com\/golang\/go\/issues\/50253<br \/>\n32. https:\/\/github.com\/golang\/go\/issues\/51644<br \/>\n33. https:\/\/pkg.go.dev\/google.golang.org\/protobuf\/encoding\/protowire<br \/>\n34. https:\/\/github.com\/golang\/go\/issues\/52239<br \/>\n35. https:\/\/github.com\/golang\/go\/issues\/52226<br \/>\n36. https:\/\/github.com\/golang\/go\/commit\/c2d436dcfad64d5cc301cf05d446f7a93c19133e<br \/>\n37. https:\/\/github.com\/golang\/go\/commit\/01b8f5e8821eac0e3456d6200b351629fd3752f4<br \/>\n38. https:\/\/github.com\/golang\/go\/commit\/a4bbcd4b1fc9dd40e0f86416d37bdd9e6d430f3f<br \/>\n39. https:\/\/github.com\/golang\/go\/issues\/50599<br \/>\n40. https:\/\/github.com\/golang\/go\/issues\/38674<br \/>\n41. https:\/\/github.com\/golang\/go\/issues\/30715<br \/>\n42. https:\/\/github.com\/golang\/go\/issues\/44163<br \/>\n43. https:\/\/github.com\/golang\/go\/issues\/37116<br \/>\n44. https:\/\/github.com\/golang\/go\/issues\/39004<br \/>\n45. https:\/\/github.com\/golang\/go\/issues\/44313<br \/>\n46. https:\/\/github.com\/golang\/go\/issues\/51485<br \/>\n47. https:\/\/github.com\/golang\/go\/issues\/52379<br \/>\n48. https:\/\/github.com\/golang\/go\/issues\/46229<br \/>\n49. https:\/\/github.com\/golang\/go\/issues\/51940<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u662f\u6211\u5bf9 golang\/go \u4e3b\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u8fdb\u884c\u4e86\u4e2a\u4eba\u5173\u6ce8\u5e76\u5217\u51fa\u7684\u5217\u8868\u3002 \u8fd9\u662f\u4e0a\u6b21\u5236\u4f5c\u7684\u6e05\u5355\u3002 &nbsp; [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44133","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/2022-\u5e74-4-\u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u4ee5\u4e0b\u662f\u6211\u5bf9 golang\/go \u4e3b\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u8fdb\u884c\u4e86\u4e2a\u4eba\u5173\u6ce8\u5e76\u5217\u51fa\u7684\u5217\u8868\u3002 \u8fd9\u662f\u4e0a\u6b21\u5236\u4f5c\u7684\u6e05\u5355\u3002 &nbsp; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/2022-\u5e74-4-\u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-06T22:37:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T21:41:34+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/\",\"name\":\"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-06T22:37:47+00:00\",\"dateModified\":\"2024-04-28T21:41:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/2022-\u5e74-4-\u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\/","og_locale":"zh_CN","og_type":"article","og_title":"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55","og_description":"\u4ee5\u4e0b\u662f\u6211\u5bf9 golang\/go \u4e3b\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u8fdb\u884c\u4e86\u4e2a\u4eba\u5173\u6ce8\u5e76\u5217\u51fa\u7684\u5217\u8868\u3002 \u8fd9\u662f\u4e0a\u6b21\u5236\u4f5c\u7684\u6e05\u5355\u3002 &nbsp; [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/2022-\u5e74-4-\u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-06T22:37:47+00:00","article_modified_time":"2024-04-28T21:41:34+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/","name":"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-06T22:37:47+00:00","dateModified":"2024-04-28T21:41:34+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"2022 \u5e74 4 \u6708\u7684\u611f\u5174\u8da3\u7684\u63d0\u4ea4\u8bb0\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/2022-%e5%b9%b4-4-%e6%9c%88%e7%9a%84%e6%84%9f%e5%85%b4%e8%b6%a3%e7%9a%84%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=44133"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44133\/revisions"}],"predecessor-version":[{"id":83387,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44133\/revisions\/83387"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}