{"id":10006971,"date":"2022-12-15T05:44:49","date_gmt":"2022-12-14T21:44:49","guid":{"rendered":"https:\/\/ityet.com\/?p=10006971"},"modified":"2022-12-15T05:44:49","modified_gmt":"2022-12-14T21:44:49","slug":"go1-20-%e5%b0%86%e7%a6%81%e6%ad%a2%e5%8c%bf%e5%90%8d%e6%8e%a5%e5%8f%a3%e5%be%aa%e7%8e%af%e5%af%bc%e5%85%a5%ef%bc%81%e8%bf%99%e6%98%af%e4%b8%80%e6%ac%a1%e6%89%93%e7%a0%b4-go1-%e5%85%bc%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006971","title":{"rendered":"Go1.20 \u5c06\u7981\u6b62\u533f\u540d\u63a5\u53e3\u5faa\u73af\u5bfc\u5165\uff01\u8fd9\u662f\u4e00\u6b21\u6253\u7834 Go1 \u517c\u5bb9\u6027\u627f\u8bfa\u7684\u771f\u5b9e\u6848\u4f8b\u3002\u3002\u3002"},"content":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u714e\u9c7c\u3002<\/p>\n<p>\u6700\u8fd1\u56e0\u4e3a\u4e34\u8fd1\u65b0\u7248\u672c\u53d1\u5e03\u8282\u70b9\uff0c\u6211\u5728\u770b Go1.20 \u7684\u65b0\u7279\u6027\u300a<a href=\"https:\/\/link.segmentfault.com\/?enc=lPdwSiW20sJz5AEuCjU4Xw%3D%3D.xAMcl%2FhV%2FVhXqGF8a4B6wFfSetqtEBpm9qs7w%2BwjCj%2BLyLduh4%2BOybf453%2FQbuda\" rel=\"nofollow\" title=\"spec: disallow anonymous interface cycles\">spec: disallow anonymous interface cycles<\/a>\u300b\uff0c\u53d1\u73b0\u4e86\u4e00\u4e2a\u6bd4\u8f83\u9a9a\u7684\u64cd\u4f5c&#8230;\u4ee5\u524d\u6211\u90fd\u6ca1\u60f3\u5230\u53ef\u4ee5\u8fd9\u4e48\u7528\uff0c\u8fd8\u6709\u70b9\u610f\u601d\uff0c\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n<p>\u5728 Go \u89c4\u8303\u4e2d\u662f\u5141\u8bb8\u5c06\u63a5\u53e3\u7c7b\u578b\uff08interface{}\uff09\u5185\u5d4c\u5230\u5176\u4ed6\u58f0\u660e\u7684\u63a5\u53e3\u5f53\u4e2d\u7684\uff0c\u4e5f\u5c31\u662f\u8457\u540d\u7684\u5957\u5a03\u795e\u5668\uff1a\u7ec4\u5408\u3002<\/p>\n<h2>\u5957\u5a03\u63a5\u53e3\u7c7b\u578b<\/h2>\n<p>Go \u6807\u51c6\u5e93\u4e2d\u6bd4\u8f83\u7ecf\u5178\u7684\u4f8b\u5b50\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"go\">type ReadCloser interface {\n    Reader\n    Closer\n}\n\ntype Reader interface {\n    Read(p []byte) (n int, err error)\n}\n\ntype Closer interface {\n    Close() error\n}<\/code><\/pre>\n<p>\u5b9e\u9645\u4e0a\u5c55\u5f00\u662f\uff1a<\/p>\n<pre><code class=\"go\">type ReadCloser interface {\n    interface {\n        Read(p []byte) (n int, err error)\n  }\n    interface {\n        Close() error\n    }\n}<\/code><\/pre>\n<p>\u4e00\u5207\u90fd\u770b\u8d77\u6765\u5982\u6b64\u7f8e\u597d\uff0c\u4f3c\u4e4e\u5f88\u597d\u7684\u4f53\u73b0\u4e86 Go \u7684\u4f18\u79c0\u4e4b\u5904\u3002<\/p>\n<p>\u8ba1\u5212\u662f\u8d76\u4e0d\u4e0a\u53d8\u5316\u7684\u3002<\/p>\n<h2>\u533f\u540d\u63a5\u53e3\u5faa\u73af\u5bfc\u5165<\/h2>\n<p>\u5728\u73b0\u5b9e\u4ee3\u7801\u4e2d\uff0c\u8fd9\u79cd\u652f\u6301\u5c31\u5b58\u5728\u7740\u5faa\u73af\u5f15\u7528\u7684\u7528\u6cd5\u3002\u5982\u4e0b\u7b80\u5355\u4f8b\u5b50\uff1a<\/p>\n<pre><code class=\"go\">type I interface {\n    m()\n    interface {\n        I\n  }\n}<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\uff0c\u58f0\u660e\u4e86\u63a5\u53e3\u7c7b\u578b I\uff0c\u7136\u540e\u53c8\u5305\u542b\u4e86 m()\uff0c\u53c8\u5305\u542b\u63a5\u53e3 I\u3002\u8fd9\u4f1a\u662f\u4e00\u4e2a \u201c\u6c38\u52a8\u673a\u201d\uff0c\u6c38\u8fdc\u90fd\u4e0d\u4f1a\u505c\u6b62\u3002\u5728\u5f00\u6e90\u7684 GitHub \u4e2d\uff0c\u4e5f\u771f\u5b9e\u5b58\u5728\u7740\u3002<\/p>\n<p>\u5982\u9879\u76ee <a href=\"https:\/\/link.segmentfault.com\/?enc=361udRk5wXxCGe6%2FUxRGKw%3D%3D.7Ef1aTAw%2FvECmTNXyhRXDnKdJHnkU5b%2Fcd3IUrnl46pvq7tFwonNEuFRjPcwVWU6rHNPFu22kUeaV07t%2FYEAzC1eKa%2BjH%2B8nnM0v0Ri6qBk%3D\" rel=\"nofollow\" title=\"gozelus\/zelus_rest\">gozelus\/zelus_rest<\/a> \u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"go\">type MySQLDb interface {\n    execSQL\n    Table(ctx context.Context, name string) interface {\n        whereSQL\n        insertSQL\n        selectSQL\n        findSQL\n        orderSQL\n        clausesSQL\n    }\n    Begin() interface {\n        MySQLDb\n        Rollback()\n        Commit()\n    }\n}<\/code><\/pre>\n<p>\u5982\u9879\u76ee <a href=\"https:\/\/link.segmentfault.com\/?enc=qtf48TE%2BG4vOj6%2F%2FEok9Ig%3D%3D.rNGsM5EIqUDhiEqMyfRPg8OKsN26T3nG5HI0n8%2BiCi4DlVwDlccli9gWzRja69R1APKXg%2B1cZ19Vy0RqADKQNHWkP5k8uLA%2BH%2Fsbr206l2px7rgOzg5fP4cEz0wbYtep\" rel=\"nofollow\" title=\"vetcher\/go-astra\">vetcher\/go-astra<\/a> \u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"go\">type ComplexInterface interface {\n    A(a interface {\n        B()\n        ComplexInterface\n    }) interface {\n        C()\n        D()\n    }\n}<\/code><\/pre>\n<p>\u8fd9\u7c7b\u5199\u6cd5\u5176\u5b9e\u975e\u5e38\u8ff7\u60d1\u4eba\uff0c\u8fd9\u610f\u5473\u53ef\u4ee5\u65e0\u9650\u5d4c\u5957\u63a5\u53e3\uff0c\u5e76\u4f7f\u7528\u5185\u5728\u7684\u65b9\u6cd5\u3002\u4f46\u4f5c\u8005\u5728\u5199\u8fd9\u4e2a\u4ee3\u7801\u65f6\uff0c\u53ef\u80fd\u76ee\u7684\u5e76\u4e0d\u662f\u5982\u6b64\uff0c\u5bfc\u81f4\u88ab\u4f7f\u7528\u8005\u9519\u7528\u3002<\/p>\n<h2>\u8fd9\u6709\u6ca1\u6709\u95ee\u9898<\/h2>\n<p>\u5bf9\u5916\u5ba3\u4f20\u7b80\u6d01\u597d\u7528\u7011\u5e03\u5f0f\u7f16\u7a0b\u7684 Go\uff0c\u5982\u6b64\u5bf9\u533f\u540d\u63a5\u53e3\u5faa\u73af\u5bfc\u5165\u7684\u652f\u6301\uff0c\u662f\u5426\u5408\u89c4\u5462\uff1f<\/p>\n<p>\u5176\u5b9e\u5e76\u4e0d\u7136\u3002<\/p>\n<p>\u65e9\u5728 2016 \u5e74\u7684 <a href=\"https:\/\/link.segmentfault.com\/?enc=ehXKnQ3cvaXaLJ1c85DYAw%3D%3D.psJ%2B%2FO2hBo%2Bog5lLsSxZdq3PHvtyUIKNEaCuvh9mQpk9FqlD7kiSubfIR%2FDMNR%2FjtfavmuTTBMsrr9UliN4IACS8qDdd%2FJmBy9D4XlMaeOa5zf0O5Lxs%2BVcr%2BALZ27lU\" rel=\"nofollow\" title=\"Proposal: Type Aliases\">Proposal: Type Aliases<\/a> \u4e2d\u7684 Type cycles \u90e8\u5206\u5c31\u5bf9\u6b64\u6709\u6240\u5b9a\u4e49\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043029839\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u8fd9\u4e4b\u4e2d\u660e\u786e\u6307\u51fa\uff1a<strong>\u7c7b\u578b\u522b\u540d\u5fc5\u987b\u80fd\u591f &#8220;\u6269\u5c55\u51fa\u6765&#8221;\uff0c\u4f46\u6ca1\u6709\u529e\u6cd5 &#8220;\u6269\u5c55&#8221; \u51fa\u50cf <code>T = *T<\/code> \u8fd9\u6837\u7684\u522b\u540d<\/strong>\u3002<\/p>\n<p>\u5957\u7528\u5230\u73b0\u5728\u7684\u95ee\u9898\u6765\uff0c\u5982\u679c\u4e0a\u9762\u7684 T \u5c31\u662f I\uff08\u63a5\u53e3\u7c7b\u578b\uff09\uff0c\u90a3\u4e48\u540c\u7406\u53ef\u5f97 <code>I = *I<\/code>\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u6c38\u8fdc\u65e0\u6cd5\u7ec8\u6b62\u7684\u3002<\/p>\n<h2>\u793e\u533a\u8ba8\u8bba<\/h2>\n<p>\u5728\u4e00\u756a\u6fc0\u70c8\u8ba8\u8bba\u540e\uff0c\u57fa\u4e8e\u4ee5\u4e0b\u51e0\u70b9\uff0c\u51b3\u5b9a\u63a5\u7eb3\u8be5\u63d0\u6848\uff0c\u4e5f\u5c31\u662f\u5728\u65b0\u7248\u672c\u4e2d\u7981\u7528 Go \u533f\u540d\u63a5\u53e3\u7684\u5faa\u73af\u5bfc\u5165\uff0c\u5c06\u5176\u6539\u4e3a\u6709\u9650\u5730\u6269\u5c55\u6240\u6709\u7684\u5d4c\u5165\u5f0f\u63a5\u53e3\u3002<\/p>\n<p>\u5728\u7981\u7528\u540e\uff0c\u4ee5\u4e0b\u4e09\u79cd\u7c7b\u4f3c\u5199\u6cd5\u90fd\u4f1a\u88ab\u62d2\u7edd\u3002<\/p>\n<p>\u7b2c\u4e00\u79cd\uff1a<\/p>\n<pre><code class=\"go\">type B interface { I }\ntype I interface { m() interface { B } }<\/code><\/pre>\n<p>\u7b2c\u4e8c\u79cd\uff1a<\/p>\n<pre><code class=\"go\">type B = interface{ I }\ntype I interface{ m() interface{ B } }<\/code><\/pre>\n<p>\u7b2c\u4e09\u79cd\uff1a<\/p>\n<pre><code class=\"go\">type B = interface{ I }\ntype I interface{ m() B }<\/code><\/pre>\n<h3>Go1 \u517c\u5bb9\u6027\u627f\u8bfa<\/h3>\n<p>\u6700\u6838\u5fc3\u7684\u662f Go1 \u517c\u5bb9\u6027\u627f\u8bfa\u3002\u4ece\u4efb\u4f55\u89d2\u5ea6\u4e0a\u6765\u8bb2\uff0c<strong>\u7981\u7528\u8fd9\u4e2a\u7279\u6027\u662f\u7834\u574f\u6027\u53d8\u66f4\uff08\u65e0\u6cd5\u5411\u540e\u517c\u5bb9\uff09\uff0c\u7edd\u5bf9\u662f\u8fdd\u53cd\u517c\u5bb9\u6027\u627f\u8bfa\u7684<\/strong>\u3002<\/p>\n<p>\u5927\u5bb6\u8ba4\u4e3a\u5728\u516c\u5171\u9879\u76ee\u5e93\u4e2d\uff0c\u57fa\u672c\u6ca1\u6709\u4eba\u4f7f\u7528\u8fd9\u79cd\u533f\u540d\u63a5\u53e3\u5faa\u73af\u5bfc\u5165\u7684\u65b9\u5f0f\uff0c\u7528\u9014\u5f88\u5c11\uff08\u51e0\u4e4e\u4e3a 0\uff09\u9664\u4e86\u4e0a\u9762\u63d0\u5230\u7684 gozelus\/zelus_rest \u9879\u76ee\uff0c\u5e76\u4e14\u8be5\u6a21\u5757\u4f3c\u4e4e\u6ca1\u4ec0\u4e48\u4eba\u5f15\u7528\u3002<\/p>\n<p>rsc \u5728\u7efc\u5408\u4e86\u5229\u5f0a\u540e\uff0c\u8ba4\u4e3a\u628a\u8fd9\u4e2a\u7279\u6027\u5e72\u6389\uff0c\u80fd\u66f4\u597d\u7684\u63d0\u9ad8\u4ee3\u7801\u7b80\u6d01\u6027\uff0c\u786e\u7acb\u4e86\u8be5\u7279\u6027\u7684\u7981\u7528\uff0c\u4f1a\u548c\u4ee5\u5f80\u4e00\u6837\u7684\u63a8\u8fdb\u8282\u594f\u3002<\/p>\n<p>\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>Go1.20\uff1aGo \u7f16\u8bd1\u5668\u9ed8\u8ba4\u4f1a\u62d2\u7edd\u8fd9\u4e9b\u63a5\u53e3\u5faa\u73af\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528 <code>go build -gcflags=all=-d=interfacecycles<\/code> \u6765\u8fdb\u884c\u6784\u5efa\uff0c\u4ee5\u786e\u4fdd\u65e7\u4ee3\u7801\u7684\u6b63\u5e38\u7f16\u8bd1\u3002\u5982\u679c\u5728\u5019\u9009\u53d1\u5e03\u671f\u95f4\u6709\u4eba\u5411 Go \u56e2\u961f\u62a5\u544a\u5927\u91cf\u635f\u574f\uff0c\u5c06\u4f1a\u53d6\u6d88\u6b64\u66f4\u6539\u3002<\/li>\n<li>Go1.22\uff1a\u7b49\u5230 1.22 \u7248\u672c\u540e <code>-d=interfacecycles<\/code> \u6807\u5fd7\u5c06\u88ab\u5220\u9664\uff0c\u65e7\u4ee3\u7801\u5c06\u4e0d\u518d\u6784\u5efa\u8be5\u7279\u6027\u3002\u5982\u679c\u6709\u4eba\u62a5\u544a\u95ee\u9898\uff0c\u5c06\u53ef\u4ee5\u8ba8\u8bba\u6216\u662f\u63a8\u8fdf\u5220\u9664\uff0c\u7ed9\u4e88\u66f4\u591a\u7684\u6539\u9020\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<h3>\u94fe\u5f0f\u8c03\u7528\u6a21\u5f0f<\/h3>\n<p>\u6709\u4e00\u79cd\u7ecf\u5178\u7684\u8bbe\u8ba1\u6a21\u5f0f\u53eb\uff1a\u94fe\u5f0f\u8c03\u7528\uff0c\u4e5f\u6709\u53eb\u65b9\u6cd5\u94fe\u7684\u3002\u4f8b\u5982\u5728 etcd sdk \u4e2d\uff0c\u5e38\u5e38\u4f1a\u5728 Watch\u3001Next \u8fd9\u7c7b\u76f8\u5173\u63a5\u53e3\u4e2d\u89c1\u5230\u3002<\/p>\n<p>\u5728 Go \u4e2d\u53ef\u4ee5\u8fd9\u4e48\u5199\uff1a<\/p>\n<pre><code class=\"go\">type Nexter interface { \n    Next(Input) (interface { Nexter }, error)\n    Done() Output\n}<\/code><\/pre>\n<p>\u4e00\u65e6\u7981\u7528\u540e\uff0c\u5c31\u4e0d\u80fd\u5982\u6b64\u533f\u540d\u5d4c\u5957\u4e86\u3002<\/p>\n<p>\u4f1a\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528\u5982\u4e0b\u65b9\u5f0f\uff1a<\/p>\n<pre><code class=\"go\">type Nexter interface { \n    Next(Input) (Nexter, error)\n    Done() Output\n}<\/code><\/pre>\n<p>\u5305\u62ec\u5728 Node \u8fd9\u7c7b\u8282\u70b9\u58f0\u660e\u65f6\uff0c\u4e5f\u63a8\u8350\u5982\u6b64\uff1a<\/p>\n<pre><code class=\"go\">type Node interface {\n    Parent() Node\n    FirstChild() Node\n    Children() []Node\n}<\/code><\/pre>\n<p>\u5957\u5a03\u4e5f\u5f97\u5957\u4e0a\u540d\u5b57\uff0c\u4e0d\u80fd\u6210\u4e3a \u201c\u65e0\u540d\u201d \u8005\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u539f\u5148\u652f\u6301\u533f\u540d\u63a5\u53e3\u7684\u5faa\u73af\u5bfc\u5165\uff0c\u672c\u8d28\u4e0a<strong>\u8fdd\u80cc\u4e86 Go \u4e00\u8d2f\u7684\u7b80\u6d01\u660e\u4e86\u7684\u8bbe\u8ba1\u7406\u5ff5<\/strong>\u3002\u5982\u679c\u5728 Go \u5de5\u7a0b\u4e2d\u7528\u7684\u591a\uff0c\u4e0d\u6ce8\u610f\u5c31\u4f1a\u4ea7\u751f\u6b21\u751f\u5f71\u54cd\uff0c\u7981\u4e86\u4e5f\u6709\u597d\u5904\u3002<\/p>\n<p>\u76ee\u524d\u8be5\u7279\u6027\u53d8\u66f4\u7684\u4ee3\u7801\u5df2\u7ecf\u63d0\u4ea4\u3002\u5982\u679c\u6309\u7167 rsc \u7684\u8ba1\u5212\u6211\u4eec\u4f1a\u5728 Go1.20 \u6216 Go1.21 \u770b\u5230\u8fd9\u4e2a\u65b0\u7279\u6027\uff0cGo1.22 \u6216 Go1.24 \u5c06\u4f1a\u6b63\u5f0f\u79fb\u9664\u3002<\/p>\n<p>\u503c\u5f97\u5173\u6ce8\u7684\u4e00\u70b9\uff0cGo \u56e2\u961f\u4e3a\u6b64\uff0c\u5e94\u8be5\u662f<strong>\u9996\u6b21\u6253\u7834\u4e86\u5bf9 Go1 \u517c\u5bb9\u6027\u7684\u627f\u8bfa<\/strong>\uff0c\u505a\u51fa\u4e86\u7834\u574f\u6027\u53d8\u66f4\uff0c\u5728\u63a8\u8fdb\u65b9\u5f0f\u4e0a\u91c7\u53d6\u7684\u662f\u6e10\u8fdb\u5f0f\u7684\u6a21\u5f0f\u3002<\/p>\n<p>\u8fd9\u4ecd\u7136\u503c\u5f97\u6211\u4eec\u5173\u6ce8\uff0c\u6bd5\u7adf&#8230;\u7834\u7a97\u6548\u5e94\uff1f<\/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=F%2B22LcpZnigVjfIrpzhBlw%3D%3D.yMyB9cUhvkzxEE18SnMZO1nCHL8iYBVj4pKDK06zl2Q%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=kzHiPJuvp3ixOleJdgUNTw%3D%3D.8lFop9qyXAYUEOgrJfiRnkbTgVj6sWPlmlDdy27EfXzXdiE%2FMbm1Nw%2BcR9Hf3nqU\" 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=l6gjzMTieZaRUf67Zmcm1A%3D%3D.r%2FpjvpXBNYHXjxdKxjhKm%2FV53SHmIIapaub1WLRGfHwNnsSsN3TvkSgaUud85fsU\" 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=ajrs8ryqpiyQaJ1kCsoQTg%3D%3D.QPLegH%2FpAULs487XyHLJcOaR%2F1ZJgBxWbciAALlnRCs%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=YnAZOXmIYsZiE0bqh3kn%2BQ%3D%3D.LcMYC%2FVXMpuhfmFZNJZhFwzMkRchGPLaHJolchL92FY%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=TtZgyBQvnUKbPXbHKPU5QQ%3D%3D.JY9DLGDi15%2FGDgzGvDaX%2BUtuvzneFZBzmJ2l49B2T%2Bg%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=tW2ypb8h9WOy6%2B1StucW2w%3D%3D.b3sSMniWV2YftlucHMb%2FIADVvVEeh8feukMpUuRjVQvJi%2BkmmtHxFKCp1rlSij1NTT0fcfU5230064%2F%2Bq8f%2FtA%3D%3D\" rel=\"nofollow\">Go1.20 \u4e2d\u4e24\u4e2a\u5173\u4e8e Time \u7684\u66f4\u65b0\uff0c\u7ec8\u4e8e\u4e0d\u7528\u80cc 2006-01-02 15:04:05 \u4e86\uff01<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=TYGnNwLjWKL1LIZ3r1wUSQ%3D%3D.ulhDouqGsmCCWG4dbdobYm8Z9m18GRohlSWQVmbj75VQ4DQ4MRbcuwJcrpRyvP8O9SutDS3UhNOFW4zQQ4cakA%3D%3D\" rel=\"nofollow\">\u6253\u8138\u4e86\u5144\u5f1f\u4eec\uff0cGo1.20 arena \u6765\u4e86\uff01<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=yNPR2yC46LbIicSWHjvUvQ%3D%3D.vjnJ2E6hVjb%2BGP90AXNz0RXVegg22N45yKWIPKYweyZ9Ko8VvZn1GvsCLbnO%2FKH%2BsBxnxMQLBlVCInYp%2FWgl2w%3D%3D\" rel=\"nofollow\">Go \u5341\u5e74\u4e86\uff0c\u7ec8\u4e8e\u60f3\u8d77\u8981\u7edf\u4e00 log \u5e93\u4e86\uff01<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043029837\">https:\/\/segmentfault.com\/a\/1190000043029837<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u714e\u9c7c\u3002 \u6700\u8fd1\u56e0\u4e3a\u4e34\u8fd1\u65b0\u7248\u672c\u53d1\u5e03\u8282\u70b9\uff0c\u6211\u5728\u770b Go1.20 \u7684\u65b0\u7279\u6027\u300aspec: disallow  [&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-10006971","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\/10006971","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=10006971"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006971\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}