{"id":205494,"date":"2025-06-12T11:32:06","date_gmt":"2025-06-12T03:32:06","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205494\/"},"modified":"2025-06-12T11:32:06","modified_gmt":"2025-06-12T03:32:06","slug":"golang%e6%a1%86%e6%9e%b6%e4%b8%8e%e5%a4%a7%e6%95%b0%e6%8d%ae%e6%a1%86%e6%9e%b6%e7%9a%84%e9%9b%86%e6%88%90%e6%8c%87%e5%af%bc","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205494\/","title":{"rendered":"golang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc"},"content":{"rendered":"<p>\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662fGOLANG\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300agolang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc\u300b<\/span>\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01,\u5982\u4f55\u5c06 Go \u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u96c6\u6210\uff1fHadoop \u96c6\u6210\uff1a \u4f7f\u7528 gohadoop \u5e93\u8bbf\u95ee Hadoop API\u3002Spark \u96c6\u6210\uff1a \u4f7f\u7528 go-spark \u5e93\u8fd0\u884c Spark \u4f5c\u4e1a\u3002Flink \u96c6\u6210\uff1a \u4f7f\u7528 go-flink \u5e93\u521b\u5efa Flink \u6d41\u5904\u7406\u4f5c\u4e1a\u3002,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241026\/1729913842671c63f21f2a1.jpg\" class=\"aligncenter\">,<br \/>\n<strong>Go \u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5357<\/strong>,<br \/>\n<strong>\u7b80\u4ecb<\/strong>,\u968f\u7740\u5927\u6570\u636e\u6210\u4e3a\u4f01\u4e1a\u8fd0\u8425\u7684\u5173\u952e\u9a71\u52a8\u529b\uff0c\u5c06 Go \u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230\u5927\u6570\u636e\u6846\u67b6\u4e2d\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002\u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5b8c\u6210 Go \u6846\u67b6\u4e0e Hadoop\u3001Spark \u548c Flink \u7b49\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u8fc7\u7a0b\u3002,<br \/>\n<strong>Hadoop \u96c6\u6210<\/strong>,Hadoop MapReduce \u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u5206\u5e03\u5f0f\u8ba1\u7b97\u6846\u67b6\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [gohadoop](https:\/\/github.com\/colinmarc\/gohadoop) \u5e93\u3002\u8be5\u5e93\u63d0\u4f9b\u4e86\u5bf9 Hadoop API \u7684 Go \u63a5\u53e3\uff1a,<br \/>\n<strong>Spark \u96c6\u6210<\/strong>,Apache Spark \u662f\u4e00\u4e2a\u5feb\u901f\u3001\u901a\u7528\u7684\u5927\u6570\u636e\u5904\u7406\u5f15\u64ce\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [go-spark](https:\/\/github.com\/google\/go-spark) \u5e93\uff1a,<br \/>\n<strong>Flink \u96c6\u6210<\/strong>,Apache Flink \u662f\u4e00\u4e2a\u5b9e\u65f6\u5927\u6570\u636e\u5904\u7406\u5f15\u64ce\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [go-flink](https:\/\/github.com\/apache\/flink-go) \u5e93\uff1a,<br \/>\n<strong>\u5b9e\u6218\u6848\u4f8b<\/strong>,\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528 Go \u548c Spark \u96c6\u6210\u7684\u793a\u4f8b\uff0c\u7528\u4e8e\u5206\u6790 CSV \u6587\u4ef6\u4e2d\u7684\u9500\u552e\u6570\u636e\uff1a,<br \/>\n<strong>\u7ed3\u8bba<\/strong>,\u5e0c\u671b\u672c\u6307\u5357\u80fd\u5e2e\u52a9\u60a8\u5c06 Go \u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230\u5927\u6570\u636e\u6846\u67b6\u4e2d\u3002\u901a\u8fc7\u5229\u7528 Go \u7684\u5e76\u53d1\u548c\u9ad8\u6548\u6027\uff0c\u60a8\u53ef\u4ee5\u6784\u5efa\u53ef\u6269\u5c55\u4e14\u5bb9\u9519\u7684\u6570\u636e\u5904\u7406\u89e3\u51b3\u65b9\u6848\u3002\u8bf7\u8bb0\u4f4f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\u5e76\u4e0d\u65ad\u4f18\u5316\u60a8\u7684\u4ee3\u7801\u3002,\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300agolang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~GOLANG\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03GOLANG\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01,\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662fGOLANG\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300agolang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc\u300b<\/span>\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\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\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc<\/span><\/p>\n<h1>golang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc<\/h1>\n<p><span>2024-10-26 11:37:39<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662fGOLANG\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300agolang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc\u300b<\/span>\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n<p>\u5982\u4f55\u5c06 Go \u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u96c6\u6210\uff1fHadoop \u96c6\u6210\uff1a \u4f7f\u7528 gohadoop \u5e93\u8bbf\u95ee Hadoop API\u3002Spark \u96c6\u6210\uff1a \u4f7f\u7528 go-spark \u5e93\u8fd0\u884c Spark \u4f5c\u4e1a\u3002Flink \u96c6\u6210\uff1a \u4f7f\u7528 go-flink \u5e93\u521b\u5efa Flink \u6d41\u5904\u7406\u4f5c\u4e1a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241026\/1729913842671c63f21f2a1.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>Go \u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5357<\/strong><\/p>\n<p><strong>\u7b80\u4ecb<\/strong><\/p>\n<p>\u968f\u7740\u5927\u6570\u636e\u6210\u4e3a\u4f01\u4e1a\u8fd0\u8425\u7684\u5173\u952e\u9a71\u52a8\u529b\uff0c\u5c06 Go \u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230\u5927\u6570\u636e\u6846\u67b6\u4e2d\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002\u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5b8c\u6210 Go \u6846\u67b6\u4e0e Hadoop\u3001Spark \u548c Flink \u7b49\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u8fc7\u7a0b\u3002<\/p>\n<p><strong>Hadoop \u96c6\u6210<\/strong><\/p>\n<p>Hadoop MapReduce \u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u5206\u5e03\u5f0f\u8ba1\u7b97\u6846\u67b6\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [gohadoop](https:\/\/github.com\/colinmarc\/gohadoop) \u5e93\u3002\u8be5\u5e93\u63d0\u4f9b\u4e86\u5bf9 Hadoop API \u7684 Go \u63a5\u53e3\uff1a<\/p>\n<pre>import (\n    \"context\"\n\n    \"github.com\/colinmarc\/hdfs\"\n    \"github.com\/colinmarc\/yarn\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    \/\/ \u521b\u5efa Hadoop \u6587\u4ef6\u7cfb\u7edf\u5ba2\u6237\u7aef\n    hdfsClient, err := hdfs.NewClient(hdfs.ClientOptions{})\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ \u521b\u5efa Yarn \u5ba2\u6237\u7aef\n    yarnClient, err := yarn.NewClient(yarn.ClientOptions{})\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ ... \u4f7f\u7528 Hadoop \u548c Yarn \u529f\u80fd\n}<\/pre>\n<p><strong>Spark \u96c6\u6210<\/strong><\/p>\n<p>Apache Spark \u662f\u4e00\u4e2a\u5feb\u901f\u3001\u901a\u7528\u7684\u5927\u6570\u636e\u5904\u7406\u5f15\u64ce\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [go-spark](https:\/\/github.com\/google\/go-spark) \u5e93\uff1a<\/p>\n<pre>import (\n    \"bytes\"\n    \"context\"\n    \"fmt\"\n\n    \"github.com\/google\/go-spark\/spark\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    \/\/ \u521b\u5efa Spark \u52a9\u624b\n    workerPort := 7077\n    sparkClient, err := spark.NewClient(spark.ClientOptions{\n        AppResource: \"\/path\/to\/my.jar\",\n        AppArgs: []string{\".\/my.data.csv\"},\n        WorkerPort: &amp;workerPort,\n    })\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ \u8fd0\u884c Spark \u4f5c\u4e1a\n    r := sparkClient.Submit(ctx, &amp;spark.Job{\n        MainClass: \"my.MainClass\",\n    })\n\n    \/\/ \u7b49\u5f85\u4f5c\u4e1a\u5b8c\u6210\u5e76\u83b7\u53d6\u7ed3\u679c\n    result, err := r.Get(ctx)\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ \u6253\u5370\u7ed3\u679c\n    fmt.Println(result.Stdout)\n}<\/pre>\n<p><strong>Flink \u96c6\u6210<\/strong><\/p>\n<p>Apache Flink \u662f\u4e00\u4e2a\u5b9e\u65f6\u5927\u6570\u636e\u5904\u7406\u5f15\u64ce\u3002\u8981\u96c6\u6210 Go \u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 [go-flink](https:\/\/github.com\/apache\/flink-go) \u5e93\uff1a<\/p>\n<pre>import (\n    \"context\"\n    \"encoding\/json\"\n    \"fmt\"\n\n    \"github.com\/apache\/flink- go\/flink\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    \/\/ \u521b\u5efa Flink \u5ba2\u6237\u7aef\n    flinkClient, err := flink.NewClient(flink.ClientOptions{})\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ \u521b\u5efa Flink \u6d41\u5904\u7406\u4f5c\u4e1a\n    jobId, err := flinkClient.CreateJob(ctx, &amp;flink.Job{\n        Name: \"my-flink-job\",\n        JarFile: \"\/path\/to\/my.jar\",\n    })\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ ... \u4f7f\u7528 Flink \u6d41\u5904\u7406\u529f\u80fd\n\n    \/\/ \u83b7\u53d6\u4f5c\u4e1a\u72b6\u6001\n    jobStatus, err := flinkClient.GetJobStatus(ctx, jobId)\n    if err != nil {\n        panic(err)\n    }\n\n    \/\/ \u6253\u5370\u4f5c\u4e1a\u72b6\u6001\n    jsonStatus, _ := json.Marshal(jobStatus)\n    fmt.Println(string(jsonStatus))\n}<\/pre>\n<p><strong>\u5b9e\u6218\u6848\u4f8b<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528 Go \u548c Spark \u96c6\u6210\u7684\u793a\u4f8b\uff0c\u7528\u4e8e\u5206\u6790 CSV \u6587\u4ef6\u4e2d\u7684\u9500\u552e\u6570\u636e\uff1a<\/p>\n<pre>import (\n    \"context\"\n    \"fmt\"\n\n    \"github.com\/apache\/spark\/rdd\"\n    \"github.com\/google\/go-spark\/spark\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    \/\/ \u521b\u5efa Spark \u52a9\u624b\u5e76\u52a0\u8f7d CSV \u6570\u636e\n    rdd := sparkClient.TextFile(ctx, \".\/data.csv\")\n\n    \/\/ \u89e3\u6790\u548c\u8f6c\u6362\u9500\u552e\u6570\u636e\n    parsedRDD := rdd.Map(func(line string) (string, int) {\n        \/\/ \u4ece CSV \u884c\u4e2d\u89e3\u6790\u9500\u552e\u989d\n        saleAmount := 0\n        \/\/ ... \u89e3\u6790\u903b\u8f91\n\n        return date, saleAmount\n    })\n\n    \/\/ \u805a\u5408\u9500\u552e\u6570\u636e\n    dailySalesRDD := parsedRDD.ReduceByKey(func(a, b int) int {\n        return a + b\n    })\n\n    \/\/ \u6253\u5370\u7ed3\u679c\n    for _, record := range dailySalesRDD.Collect() {\n        fmt.Printf(\"Date: %s, Total Sales: %d\\n\", record.Key(), record.Value)\n    }\n}<\/pre>\n<p><strong>\u7ed3\u8bba<\/strong><\/p>\n<p>\u5e0c\u671b\u672c\u6307\u5357\u80fd\u5e2e\u52a9\u60a8\u5c06 Go \u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230\u5927\u6570\u636e\u6846\u67b6\u4e2d\u3002\u901a\u8fc7\u5229\u7528 Go \u7684\u5e76\u53d1\u548c\u9ad8\u6548\u6027\uff0c\u60a8\u53ef\u4ee5\u6784\u5efa\u53ef\u6269\u5c55\u4e14\u5bb9\u9519\u7684\u6570\u636e\u5904\u7406\u89e3\u51b3\u65b9\u6848\u3002\u8bf7\u8bb0\u4f4f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\u5e76\u4e0d\u65ad\u4f18\u5316\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300agolang\u6846\u67b6\u4e0e\u5927\u6570\u636e\u6846\u67b6\u7684\u96c6\u6210\u6307\u5bfc\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~GOLANG\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03GOLANG\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   Go \u4ee3\u7801\u4e2d \\&#8221;_Error = (*_Error)(nil)\\&#8221; \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5982\u4f55\u5728 GOLANG \u4e2d\u4f18\u5316\u51fd\u6570\u56de\u8c03\u6027\u80fd\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211&#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-205494","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205494","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=205494"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205494\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}