{"id":205898,"date":"2025-06-12T08:08:53","date_gmt":"2025-06-12T00:08:53","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205898\/"},"modified":"2025-06-12T08:08:53","modified_gmt":"2025-06-12T00:08:53","slug":"golang-%e5%87%bd%e6%95%b0%e5%a6%82%e4%bd%95%e5%9c%a8%e5%a4%9a%e4%b8%aa-goroutine-%e4%b8%ad%e4%bd%bf%e7%94%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205898\/","title":{"rendered":"Golang \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f"},"content":{"rendered":"<p>\u201c\u7eb5\u6709\u75be\u98ce\u6765\uff0c\u4eba\u751f\u4e0d\u8a00\u5f03\u201d\uff0c\u8fd9\u53e5\u8bdd\u9001\u7ed9\u6b63\u5728\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u7684\u670b\u53cb\u4eec\uff0c\u4e5f\u5e0c\u671b\u5728\u9605\u8bfb\u672c\u6587<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f\u300b<\/span>\u540e\uff0c\u80fd\u591f\u771f\u7684\u5e2e\u52a9\u5230\u5927\u5bb6\u3002\u6211\u4e5f\u4f1a\u5728\u540e\u7eed\u7684\u6587\u7ae0\u4e2d\uff0c\u9646\u7eed\u66f4\u65b0<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u76f8\u5173\u7684\u6280\u672f\u6587\u7ae0\uff0c\u6709\u597d\u7684\u5efa\u8bae\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u975e\u5e38\u611f\u8c22\uff01,\u5728 Go \u4e2d\uff0c\u901a\u8fc7\u901a\u9053\u53ef\u4ee5\u5b89\u5168\u5730\u8de8 goroutine \u5171\u4eab\u51fd\u6570\uff1a\u521b\u5efa\u901a\u9053\u4f20\u9012\u51fd\u6570\u503c\u3002\u5728 goroutine \u4e2d\u542f\u52a8\u51fd\u6570\u5e76\u5c06\u5176\u4f20\u9012\u5230\u901a\u9053\u3002\u4ece\u901a\u9053\u63a5\u6536\u51fd\u6570\u5e76\u4f7f\u7528\u5b83\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u901a\u9053\u4f20\u9012 Count \u51fd\u6570\u503c\u6765\u5e76\u884c\u8ba1\u6570\u5217\u8868\u5143\u7d20\u3002,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241027\/1730032961671e3541df3ec.jpg\" class=\"aligncenter\">,<br \/>\n<strong>\u5728 Go \u4e2d\u8de8 Goroutine \u5171\u4eab\u51fd\u6570<\/strong>,\u5728 Go \u4e2d\uff0cgoroutine \u662f\u8f7b\u91cf\u7ea7\u7ebf\u7a0b\uff0c\u53ef\u7528\u4e8e\u5e76\u53d1\u7f16\u7a0b\u3002\u6709\u65f6\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u51fd\u6570\u3002\u672c\u6587\u5c06\u5c55\u793a\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u5b9e\u9645\u793a\u4f8b\u3002,<br \/>\n<strong>\u65b9\u6cd5<\/strong>,Go \u4e3a goroutine \u4e4b\u95f4\u5171\u4eab\u6570\u636e\u63d0\u4f9b\u4e86\u5b89\u5168\u7684\u673a\u5236\uff0c\u79f0\u4e3a\u901a\u9053\u3002\u901a\u9053\u662f\u4e00\u79cd FIFO\uff08\u5148\u8fdb\u5148\u51fa\uff09\u961f\u5217\uff0cgoroutine \u53ef\u4ee5\u4ece\u4e2d\u53d1\u9001\u6216\u63a5\u6536\u503c\u3002,\u8981\u8de8 goroutine \u5171\u4eab\u51fd\u6570\uff0c\u53ef\u4ee5\uff1a,<br \/>\n<strong>\u5b9e\u6218\u6848\u4f8b<\/strong>,\u5047\u8bbe\u60a8\u6709\u4e00\u4e2a<br \/>\n<code>Count<\/code> \u51fd\u6570\uff0c\u53ef\u8ba1\u7b97\u7ed9\u5b9a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u3002\u60a8\u5e0c\u671b\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\u6b64\u51fd\u6570\u6765\u5e76\u884c\u8ba1\u6570\u591a\u4e2a\u5217\u8868\u3002,\u4ee5\u4e0b\u662f\u5b9e\u73b0\u4ee3\u7801\uff1a,\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u901a\u9053<br \/>\n<code>funcValueChannel<\/code>\uff0c\u7528\u4e8e\u4f20\u9012<br \/>\n<code>Count<\/code> \u51fd\u6570\u503c\u3002\u7136\u540e\uff0c\u6211\u4eec\u542f\u52a8\u591a\u4e2a goroutine\uff0c\u6bcf\u4e2a goroutine \u90fd\u5c06<br \/>\n<code>Count<\/code> \u51fd\u6570\u503c\u53d1\u9001\u5230\u901a\u9053\u3002\u5728\u4e3b goroutine \u4e2d\uff0c\u6211\u4eec\u4ece\u901a\u9053\u63a5\u6536<br \/>\n<code>Count<\/code> \u51fd\u6570\u503c\u5e76\u4f7f\u7528\u5b83\u6765\u8ba1\u7b97\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u3002,\u901a\u8fc7\u4f7f\u7528\u901a\u9053\uff0c\u6211\u4eec\u53ef\u4ee5\u5728 goroutine \u4e4b\u95f4\u5b89\u5168\u5730\u5171\u4eab<br \/>\n<code>Count<\/code> \u51fd\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u5e76\u884c\u8ba1\u6570\u3002,\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300aGOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8egolang\u7684\u77e5\u8bc6\u70b9\uff01,\u201c\u7eb5\u6709\u75be\u98ce\u6765\uff0c\u4eba\u751f\u4e0d\u8a00\u5f03\u201d\uff0c\u8fd9\u53e5\u8bdd\u9001\u7ed9\u6b63\u5728\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u7684\u670b\u53cb\u4eec\uff0c\u4e5f\u5e0c\u671b\u5728\u9605\u8bfb\u672c\u6587<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f\u300b<\/span>\u540e\uff0c\u80fd\u591f\u771f\u7684\u5e2e\u52a9\u5230\u5927\u5bb6\u3002\u6211\u4e5f\u4f1a\u5728\u540e\u7eed\u7684\u6587\u7ae0\u4e2d\uff0c\u9646\u7eed\u66f4\u65b0<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u76f8\u5173\u7684\u6280\u672f\u6587\u7ae0\uff0c\u6709\u597d\u7684\u5efa\u8bae\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u975e\u5e38\u611f\u8c22\uff01,<br \/>\n<b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>GOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f<\/span><\/p>\n<h1>GOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f<\/h1>\n<p><span>2024-10-27 20:42:57<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u201c\u7eb5\u6709\u75be\u98ce\u6765\uff0c\u4eba\u751f\u4e0d\u8a00\u5f03\u201d\uff0c\u8fd9\u53e5\u8bdd\u9001\u7ed9\u6b63\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u7684\u670b\u53cb\u4eec\uff0c\u4e5f\u5e0c\u671b\u5728\u9605\u8bfb\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f\u300b<\/span>\u540e\uff0c\u80fd\u591f\u771f\u7684\u5e2e\u52a9\u5230\u5927\u5bb6\u3002\u6211\u4e5f\u4f1a\u5728\u540e\u7eed\u7684\u6587\u7ae0\u4e2d\uff0c\u9646\u7eed\u66f4\u65b0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u76f8\u5173\u7684\u6280\u672f\u6587\u7ae0\uff0c\u6709\u597d\u7684\u5efa\u8bae\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u975e\u5e38\u611f\u8c22\uff01<\/p>\n<p>\u5728 Go \u4e2d\uff0c\u901a\u8fc7\u901a\u9053\u53ef\u4ee5\u5b89\u5168\u5730\u8de8 goroutine \u5171\u4eab\u51fd\u6570\uff1a\u521b\u5efa\u901a\u9053\u4f20\u9012\u51fd\u6570\u503c\u3002\u5728 goroutine \u4e2d\u542f\u52a8\u51fd\u6570\u5e76\u5c06\u5176\u4f20\u9012\u5230\u901a\u9053\u3002\u4ece\u901a\u9053\u63a5\u6536\u51fd\u6570\u5e76\u4f7f\u7528\u5b83\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u901a\u9053\u4f20\u9012 Count \u51fd\u6570\u503c\u6765\u5e76\u884c\u8ba1\u6570\u5217\u8868\u5143\u7d20\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241027\/1730032961671e3541df3ec.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u5728 Go \u4e2d\u8de8 Goroutine \u5171\u4eab\u51fd\u6570<\/strong><\/p>\n<p>\u5728 Go \u4e2d\uff0cgoroutine \u662f\u8f7b\u91cf\u7ea7\u7ebf\u7a0b\uff0c\u53ef\u7528\u4e8e\u5e76\u53d1\u7f16\u7a0b\u3002\u6709\u65f6\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u51fd\u6570\u3002\u672c\u6587\u5c06\u5c55\u793a\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u5b9e\u9645\u793a\u4f8b\u3002<\/p>\n<p><strong>\u65b9\u6cd5<\/strong><\/p>\n<p>Go \u4e3a goroutine \u4e4b\u95f4\u5171\u4eab\u6570\u636e\u63d0\u4f9b\u4e86\u5b89\u5168\u7684\u673a\u5236\uff0c\u79f0\u4e3a\u901a\u9053\u3002\u901a\u9053\u662f\u4e00\u79cd FIFO\uff08\u5148\u8fdb\u5148\u51fa\uff09\u961f\u5217\uff0cgoroutine \u53ef\u4ee5\u4ece\u4e2d\u53d1\u9001\u6216\u63a5\u6536\u503c\u3002<\/p>\n<p>\u8981\u8de8 goroutine \u5171\u4eab\u51fd\u6570\uff0c\u53ef\u4ee5\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u4e00\u4e2a\u901a\u9053\u6765\u4f20\u9012\u51fd\u6570\u503c\uff1a<\/strong><\/p>\n<pre>funcValueChannel := make(chan func())<\/pre>\n<\/li>\n<li>\n<p><strong>\u5728 Goroutine \u4e2d\u542f\u52a8\u51fd\u6570\u5e76\u5c06\u5176\u4f20\u9012\u5230\u901a\u9053\uff1a<\/strong><\/p>\n<pre>go func() {\n    funcValueChannel &lt;- myFunc\n}()<\/pre>\n<\/li>\n<li>\n<p><strong>\u5728\u9700\u8981\u65f6\u4ece\u901a\u9053\u63a5\u6536\u51fd\u6570\u5e76\u4f7f\u7528\u5b83\uff1a<\/strong><\/p>\n<pre>otherGoroutineFunc := &lt;-funcValueChannel\notherGoroutineFunc()<\/pre>\n<\/li>\n<\/ol>\n<p><strong>\u5b9e\u6218\u6848\u4f8b<\/strong><\/p>\n<p>\u5047\u8bbe\u60a8\u6709\u4e00\u4e2a <code>Count<\/code> \u51fd\u6570\uff0c\u53ef\u8ba1\u7b97\u7ed9\u5b9a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u3002\u60a8\u5e0c\u671b\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\u6b64\u51fd\u6570\u6765\u5e76\u884c\u8ba1\u6570\u591a\u4e2a\u5217\u8868\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5b9e\u73b0\u4ee3\u7801\uff1a<\/p>\n<pre>package main\n\nimport \"fmt\"\nimport \"sync\"\nimport \"time\"\n\nfunc main() {\n    \/\/\u521b\u5efa\u4e00\u4e2a\u534f\u7a0b\u7ec4\u6765\u7b49\u5f85\u6240\u6709\u534f\u7a0b\u5b8c\u6210\n    var wg sync.WaitGroup\n\n    \/\/\u5b9a\u4e49\u4e00\u4e2a\u901a\u9053\u6765\u4f20\u9012 Count \u51fd\u6570\u503c\n    funcValueChannel := make(chan func([]int) int)\n\n    \/\/\u542f\u52a8\u591a\u4e2a\u534f\u7a0b\uff0c\u6bcf\u4e2a\u534f\u7a0b\u90fd\u5728\u4e00\u4e2a\u4e0d\u540c\u7684\u5217\u8868\u4e0a\u8c03\u7528 Count \u51fd\u6570\n    for i := 0; i &lt; 5; i++ {\n        \/\/ \u542f\u52a8\u4e00\u4e2a\u534f\u7a0b\n        wg.Add(1)\n        go func(i int) {\n            \/\/ \u5c06 Count \u51fd\u6570\u503c\u53d1\u9001\u5230\u901a\u9053\n            funcValueChannel &lt;- func(nums []int) int { return Count(nums) }\n            defer wg.Done() \/\/\u4efb\u52a1\u5b8c\u6210\u540e\u5c06\u534f\u7a0b\u7ec4\u8ba1\u6570\u51cf 1\n        }(i)\n    }\n\n    \/\/ \u521b\u5efa\u4e00\u4e2a\u5207\u7247\uff0c\u5176\u4e2d\u5305\u542b\u9700\u8981\u8ba1\u6570\u7684\u6570\u5b57\u5217\u8868\u3002\n    nums := [][]int{\n        {1, 2, 3},\n        {4, 5, 6},\n        {7, 8, 9},\n        {10, 11, 12},\n        {13, 14, 15},\n    }\n\n    \/\/ \u4ece\u901a\u9053\u63a5\u6536\u51fd\u6570\u503c\u5e76\u8ba1\u7b97\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6570\u91cf\n    for i := 0; i &lt; 5; i++ {\n        \/\/ \u4ece\u901a\u9053\u63a5\u6536 Count \u51fd\u6570\u503c\n        countFunc := &lt;-funcValueChannel\n        \/\/ \u8ba1\u7b97\u5217\u8868\u4e2d\u5143\u7d20\u7684\u6570\u91cf\n        result := countFunc(nums[i])\n        fmt.Printf(\"Goroutine %d: Result: %d\\n\", i+1, result)\n    }\n\n    \/\/ \u7b49\u5f85\u6240\u6709\u534f\u7a0b\u5b8c\u6210\uff0c\u5173\u95ed\u901a\u9053\n    wg.Wait()\n    close(funcValueChannel)\n}\n\n\/\/ Count \u8fd4\u56de\u7ed9\u5b9a\u5217\u8868\u4e2d\u5143\u7d20\u7684\u6570\u91cf\nfunc Count(nums []int) int {\n    time.Sleep(100 * time.Millisecond) \/\/ \u6a21\u62df\u4e00\u4e9b\u5904\u7406\u65f6\u95f4\n    count := 0\n    for _, num := range nums {\n        count += num\n    }\n    return count\n}<\/pre>\n<p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u901a\u9053 <code>funcValueChannel<\/code>\uff0c\u7528\u4e8e\u4f20\u9012 <code>Count<\/code> \u51fd\u6570\u503c\u3002\u7136\u540e\uff0c\u6211\u4eec\u542f\u52a8\u591a\u4e2a goroutine\uff0c\u6bcf\u4e2a goroutine \u90fd\u5c06 <code>Count<\/code> \u51fd\u6570\u503c\u53d1\u9001\u5230\u901a\u9053\u3002\u5728\u4e3b goroutine \u4e2d\uff0c\u6211\u4eec\u4ece\u901a\u9053\u63a5\u6536 <code>Count<\/code> \u51fd\u6570\u503c\u5e76\u4f7f\u7528\u5b83\u6765\u8ba1\u7b97\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u901a\u9053\uff0c\u6211\u4eec\u53ef\u4ee5\u5728 goroutine \u4e4b\u95f4\u5b89\u5168\u5730\u5171\u4eab <code>Count<\/code> \u51fd\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u5e76\u884c\u8ba1\u6570\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300aGOLANG \u51fd\u6570\u5982\u4f55\u5728\u591a\u4e2a goroutine \u4e2d\u4f7f\u7528\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8egolang\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   PHP \u51fd\u6570\u4e0e Java \u51fd\u6570\u7684\u5dee\u5f02\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   React \u7ec4\u4ef6\uff08\u57fa\u4e8e\u7c7b\u4e0e\u51fd\u6570\u5f0f\uff09\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u201c\u7eb5\u6709\u75be\u98ce\u6765\uff0c\u4eba\u751f\u4e0d\u8a00\u5f03\u201d\uff0c\u8fd9\u53e5&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205898","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205898"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205898\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}