{"id":3188,"date":"2025-03-25T23:51:34","date_gmt":"2025-03-25T15:51:34","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=3188"},"modified":"2025-03-25T23:51:34","modified_gmt":"2025-03-25T15:51:34","slug":"go-%e8%af%ad%e8%a8%80%e7%bb%93%e6%9e%84%e4%bd%93%ef%bc%88struct%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/25\/go-%e8%af%ad%e8%a8%80%e7%bb%93%e6%9e%84%e4%bd%93%ef%bc%88struct%ef%bc%89\/","title":{"rendered":"Go \u8bed\u8a00\u7ed3\u6784\u4f53\uff08Struct\uff09"},"content":{"rendered":"\n<p>\u7ed3\u6784\u4f53\u662f Go \u8bed\u8a00\u4e2d\u4e00\u79cd\u590d\u5408\u6570\u636e\u7c7b\u578b\uff0c\u5b83\u7528\u4e8e\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u7ec4\u5408\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u5b9e\u4f53\u3002\u7ed3\u6784\u4f53\u662f Go \u4e2d\u7ec4\u7ec7\u548c\u5c01\u88c5\u6570\u636e\u7684\u57fa\u7840\uff0c\u53ef\u4ee5\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u5b57\u6bb5\u7ec4\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u5177\u6709\u590d\u6742\u6570\u636e\u7ed3\u6784\u7684\u5bf9\u8c61\u3002Go \u8bed\u8a00\u6ca1\u6709\u7c7b\u7684\u6982\u5ff5\uff0c\u4f46\u7ed3\u6784\u4f53\u7684\u4f5c\u7528\u4e0e\u7c7b\u76f8\u4f3c\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u5b9a\u4e49\u7ed3\u6784\u4f53<\/strong><\/h2>\n\n\n\n<p>Go \u4e2d\u4f7f\u7528 <code>struct<\/code> \u5173\u952e\u5b57\u5b9a\u4e49\u7ed3\u6784\u4f53\u3002\u7ed3\u6784\u4f53\u7531\u4e00\u7ec4\u5b57\u6bb5\uff08\u6210\u5458\u53d8\u91cf\uff09\u7ec4\u6210\uff0c\u6bcf\u4e2a\u5b57\u6bb5\u53ef\u4ee5\u662f\u4e0d\u540c\u7c7b\u578b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 \u57fa\u672c\u5b9a\u4e49<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type Person struct {\n    Name string\n    Age  int\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Person<\/code> \u662f\u7ed3\u6784\u4f53\u7684\u7c7b\u578b\u540d\u79f0\u3002<\/li>\n\n\n\n<li><code>Name<\/code> \u548c <code>Age<\/code> \u662f\u7ed3\u6784\u4f53\u7684\u5b57\u6bb5\uff0c\u5b83\u4eec\u5206\u522b\u662f <code>string<\/code> \u7c7b\u578b\u548c <code>int<\/code> \u7c7b\u578b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 \u521b\u5efa\u7ed3\u6784\u4f53\u5b9e\u4f8b<\/strong><\/h3>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7\u7ed3\u6784\u4f53\u7c7b\u578b\u76f4\u63a5\u521b\u5efa\u7ed3\u6784\u4f53\u5b9e\u4f8b\uff0c\u5e76\u7ed9\u5b57\u6bb5\u8d4b\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p := Person{Name: \"John\", Age: 30}\nfmt.Println(p)  \/\/ \u8f93\u51fa\uff1a{John 30}<\/code><\/pre>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u901a\u8fc7\u9ed8\u8ba4\u503c\u65b9\u5f0f\u521b\u5efa\u7ed3\u6784\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var p Person\nfmt.Println(p)  \/\/ \u8f93\u51fa\uff1a{ 0}\uff0c\u5b57\u6bb5\u7684\u96f6\u503c\uff08\u7a7a\u5b57\u7b26\u4e32\u548c 0\uff09<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u8bbf\u95ee\u7ed3\u6784\u4f53\u5b57\u6bb5<\/strong><\/h2>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7 <code>.<\/code> \u6765\u8bbf\u95ee\u7ed3\u6784\u4f53\u7684\u5b57\u6bb5\u3002\u8bbf\u95ee\u65b9\u5f0f\u4e0e\u5bf9\u8c61\u5b57\u6bb5\u76f8\u4f3c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p := Person{Name: \"John\", Age: 30}\nfmt.Println(p.Name)  \/\/ \u8f93\u51fa\uff1aJohn\nfmt.Println(p.Age)   \/\/ \u8f93\u51fa\uff1a30<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u7ed3\u6784\u4f53\u6307\u9488<\/strong><\/h2>\n\n\n\n<p>\u5728 Go \u4e2d\uff0c\u7ed3\u6784\u4f53\u7c7b\u578b\u7684\u53d8\u91cf\u901a\u5e38\u662f\u503c\u7c7b\u578b\uff0c\u56e0\u6b64\u5bf9\u7ed3\u6784\u4f53\u8fdb\u884c\u8d4b\u503c\u3001\u4f20\u9012\u65f6\uff0c\u4f1a\u590d\u5236\u6574\u4e2a\u7ed3\u6784\u4f53\u3002\u5982\u679c\u60f3\u907f\u514d\u590d\u5236\u7ed3\u6784\u4f53\u5e76\u63d0\u9ad8\u6548\u7387\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ed3\u6784\u4f53\u7684\u6307\u9488\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 \u4f7f\u7528\u6307\u9488\u8bbf\u95ee\u7ed3\u6784\u4f53\u5b57\u6bb5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>p := &amp;Person{Name: \"John\", Age: 30}\nfmt.Println(p.Name)  \/\/ \u8f93\u51fa\uff1aJohn\nfmt.Println(p.Age)   \/\/ \u8f93\u51fa\uff1a30<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 \u4fee\u6539\u7ed3\u6784\u4f53\u5b57\u6bb5<\/strong><\/h3>\n\n\n\n<p>\u53ef\u4ee5\u901a\u8fc7\u7ed3\u6784\u4f53\u6307\u9488\u4fee\u6539\u5b57\u6bb5\u7684\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>p := &amp;Person{Name: \"John\", Age: 30}\np.Age = 35  \/\/ \u901a\u8fc7\u6307\u9488\u4fee\u6539\u5b57\u6bb5\nfmt.Println(p.Age)  \/\/ \u8f93\u51fa\uff1a35<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u7ed3\u6784\u4f53\u65b9\u6cd5<\/strong><\/h2>\n\n\n\n<p>Go \u8bed\u8a00\u652f\u6301\u5728\u7ed3\u6784\u4f53\u4e0a\u5b9a\u4e49\u65b9\u6cd5\u3002\u65b9\u6cd5\u662f\u4e0e\u7279\u5b9a\u7c7b\u578b\u5173\u8054\u7684\u51fd\u6570\uff0c\u901a\u5e38\u901a\u8fc7\u503c\u63a5\u6536\u8005\u6216\u6307\u9488\u63a5\u6536\u8005\u6765\u5b9a\u4e49\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.1 \u503c\u63a5\u6536\u8005\u65b9\u6cd5<\/strong><\/h3>\n\n\n\n<p>\u503c\u63a5\u6536\u8005\u65b9\u6cd5\u63a5\u6536\u7ed3\u6784\u4f53\u7684\u526f\u672c\u3002\u8fd9\u610f\u5473\u7740\u65b9\u6cd5\u5185\u90e8\u5bf9\u7ed3\u6784\u4f53\u7684\u4fee\u6539\u4e0d\u4f1a\u5f71\u54cd\u539f\u59cb\u7ed3\u6784\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Person struct {\n    Name string\n    Age  int\n}\n\nfunc (p Person) Greet() {\n    fmt.Println(\"Hello, my name is\", p.Name)\n}\n\np := Person{Name: \"John\", Age: 30}\np.Greet()  \/\/ \u8f93\u51fa\uff1aHello, my name is John<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.2 \u6307\u9488\u63a5\u6536\u8005\u65b9\u6cd5<\/strong><\/h3>\n\n\n\n<p>\u6307\u9488\u63a5\u6536\u8005\u65b9\u6cd5\u63a5\u6536\u7ed3\u6784\u4f53\u7684\u6307\u9488\uff0c\u5e76\u4e14\u53ef\u4ee5\u4fee\u6539\u7ed3\u6784\u4f53\u7684\u5b57\u6bb5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>func (p *Person) HaveBirthday() {\n    p.Age++\n}\n\np := &amp;Person{Name: \"John\", Age: 30}\np.HaveBirthday()  \/\/ \u901a\u8fc7\u6307\u9488\u63a5\u6536\u8005\u4fee\u6539\u7ed3\u6784\u4f53\u5b57\u6bb5\nfmt.Println(p.Age)  \/\/ \u8f93\u51fa\uff1a31<\/code><\/pre>\n\n\n\n<p>\u6307\u9488\u63a5\u6536\u8005\u65b9\u6cd5\u5728\u9700\u8981\u4fee\u6539\u7ed3\u6784\u4f53\u503c\u65f6\u7279\u522b\u6709\u7528\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u533f\u540d\u7ed3\u6784\u4f53<\/strong><\/h2>\n\n\n\n<p>Go \u652f\u6301\u533f\u540d\u7ed3\u6784\u4f53\uff0c\u53ef\u4ee5\u76f4\u63a5\u5b9a\u4e49\u6ca1\u6709\u540d\u79f0\u7684\u7ed3\u6784\u4f53\uff0c\u901a\u5e38\u7528\u4e8e\u4e34\u65f6\u6570\u636e\u7ed3\u6784\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>person := struct {\n    Name string\n    Age  int\n}{\n    Name: \"John\",\n    Age:  30,\n}\nfmt.Println(person)  \/\/ \u8f93\u51fa\uff1a{John 30}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. \u7ed3\u6784\u4f53\u7684\u5d4c\u5957<\/strong><\/h2>\n\n\n\n<p>Go \u652f\u6301\u7ed3\u6784\u4f53\u5d4c\u5957\uff0c\u5373\u7ed3\u6784\u4f53\u7684\u5b57\u6bb5\u53ef\u4ee5\u662f\u5176\u4ed6\u7ed3\u6784\u4f53\u7c7b\u578b\u7684\u5b9e\u4f8b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6.1 \u5d4c\u5957\u7ed3\u6784\u4f53<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type Address struct {\n    City    string\n    Country string\n}\n\ntype Person struct {\n    Name    string\n    Age     int\n    Address Address  \/\/ \u5d4c\u5957 Address \u7ed3\u6784\u4f53\n}\n\np := Person{\n    Name: \"John\",\n    Age:  30,\n    Address: Address{\n        City:    \"New York\",\n        Country: \"USA\",\n    },\n}\n\nfmt.Println(p.Name)      \/\/ \u8f93\u51fa\uff1aJohn\nfmt.Println(p.Address)   \/\/ \u8f93\u51fa\uff1a{New York USA}\nfmt.Println(p.Address.City)  \/\/ \u8f93\u51fa\uff1aNew York<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. \u7ed3\u6784\u4f53\u6807\u7b7e\uff08Struct Tags\uff09<\/strong><\/h2>\n\n\n\n<p>Go \u8bed\u8a00\u5141\u8bb8\u5728\u7ed3\u6784\u4f53\u5b57\u6bb5\u7684\u58f0\u660e\u4e2d\u4f7f\u7528\u6807\u7b7e\u3002\u6807\u7b7e\u662f\u7ed3\u6784\u4f53\u5b57\u6bb5\u58f0\u660e\u540e\u7684\u5143\u6570\u636e\uff0c\u5e38\u7528\u4e8e JSON \u5e8f\u5217\u5316\u3001\u6570\u636e\u5e93\u5b57\u6bb5\u6620\u5c04\u7b49\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.1 \u6807\u7b7e\u8bed\u6cd5<\/strong><\/h3>\n\n\n\n<p>\u7ed3\u6784\u4f53\u6807\u7b7e\u7684\u8bed\u6cd5\u662f\u901a\u8fc7\u53cd\u5f15\u53f7\u5305\u56f4\u7684\u5b57\u7b26\u4e32\uff0c\u5728\u5176\u4e2d\u53ef\u4ee5\u5305\u542b\u952e\u503c\u5bf9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Person struct {\n    Name string `json:\"name\"`\n    Age  int    `json:\"age\"`\n}<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\uff0c<code>json:\"name\"<\/code> \u662f\u6807\u7b7e\uff0c\u8868\u793a\u8be5\u5b57\u6bb5\u5728 JSON \u4e2d\u7684\u5b57\u6bb5\u540d\u662f <code>name<\/code>\u3002\u5f53\u4f7f\u7528 <code>encoding\/json<\/code> \u5305\u8fdb\u884c\u5e8f\u5217\u5316\u65f6\uff0cGo \u4f1a\u6839\u636e\u6807\u7b7e\u8f6c\u6362\u5b57\u6bb5\u540d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.2 \u4f7f\u7528\u7ed3\u6784\u4f53\u6807\u7b7e<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import \"encoding\/json\"\n\ntype Person struct {\n    Name string `json:\"name\"`\n    Age  int    `json:\"age\"`\n}\n\np := Person{Name: \"John\", Age: 30}\njsonData, _ := json.Marshal(p)\nfmt.Println(string(jsonData))  \/\/ \u8f93\u51fa\uff1a{\"name\":\"John\",\"age\":30}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. \u7a7a\u7ed3\u6784\u4f53\uff08Empty Struct\uff09<\/strong><\/h2>\n\n\n\n<p>\u7a7a\u7ed3\u6784\u4f53\u662f\u6ca1\u6709\u5b57\u6bb5\u7684\u7ed3\u6784\u4f53\uff0c\u901a\u5e38\u7528\u4e8e\u5360\u4f4d\u7b26\u6216\u53ea\u7528\u4e8e\u6807\u8bb0\u5b58\u5728\u7684\u573a\u666f\uff0c\u5185\u5b58\u5f00\u9500\u4e3a\u96f6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Flag struct {}\n\nvar flag Flag\nfmt.Println(flag)  \/\/ \u8f93\u51fa\uff1a{}<\/code><\/pre>\n\n\n\n<p>\u7a7a\u7ed3\u6784\u4f53\u5e38\u7528\u4e8e\u4fe1\u53f7\u901a\u9053\u4e2d\uff0c\u7528\u4e8e\u4ec5\u4f20\u9012\u5b58\u5728\u6027\u800c\u4e0d\u5173\u5fc3\u6570\u636e\u5185\u5bb9\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. \u7ed3\u6784\u4f53\u7684\u96f6\u503c<\/strong><\/h2>\n\n\n\n<p>\u7ed3\u6784\u4f53\u7684\u96f6\u503c\u662f\u7ed3\u6784\u4f53\u7c7b\u578b\u7684\u5b9e\u4f8b\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5b57\u6bb5\u7684\u503c\u90fd\u662f\u8be5\u5b57\u6bb5\u7c7b\u578b\u7684\u96f6\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type Person struct {\n    Name string\n    Age  int\n}\n\nvar p Person\nfmt.Println(p)  \/\/ \u8f93\u51fa\uff1a{ 0}\uff0cName \u662f\u7a7a\u5b57\u7b26\u4e32\uff0cAge \u662f 0<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>10. \u603b\u7ed3<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go \u8bed\u8a00\u4e2d\u7684\u7ed3\u6784\u4f53\u662f\u4e00\u4e2a\u7528\u4e8e\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u5b57\u6bb5\u7ec4\u5408\u6210\u4e00\u4e2a\u590d\u5408\u6570\u636e\u7c7b\u578b\u3002<\/li>\n\n\n\n<li>\u7ed3\u6784\u4f53\u53ef\u4ee5\u901a\u8fc7\u503c\u63a5\u6536\u8005\u548c\u6307\u9488\u63a5\u6536\u8005\u65b9\u6cd5\u8fdb\u884c\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li>Go \u652f\u6301\u7ed3\u6784\u4f53\u5d4c\u5957\u548c\u533f\u540d\u7ed3\u6784\u4f53\u3002<\/li>\n\n\n\n<li>\u7ed3\u6784\u4f53\u7684\u6807\u7b7e\u901a\u5e38\u7528\u4e8e JSON \u5e8f\u5217\u5316\u3001\u6570\u636e\u5e93\u64cd\u4f5c\u7b49\u573a\u666f\u3002<\/li>\n\n\n\n<li>Go \u7ed3\u6784\u4f53\u7684\u5185\u5b58\u7ba1\u7406\u8f83\u4e3a\u9ad8\u6548\uff0c\u9002\u5408\u7528\u6765\u7ec4\u7ec7\u548c\u5c01\u88c5\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\ud83d\udd39 \u53c2\u8003\u8d44\u6599<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/golang.org\/doc\/effective_go.html#structs\">Go \u5b98\u65b9\u6587\u6863 &#8211; Structs<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/golang\/go\/wiki\/Structs\">Go Wiki &#8211; Structs<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7ed3\u6784\u4f53\u662f Go \u8bed\u8a00\u4e2d\u4e00\u79cd\u590d\u5408\u6570\u636e\u7c7b\u578b\uff0c\u5b83\u7528\u4e8e\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u7ec4\u5408\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u5b9e\u4f53\u3002\u7ed3\u6784\u4f53\u662f Go \u4e2d\u7ec4\u7ec7\u548c\u5c01 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3189,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-3188","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-golang"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=3188"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3188\/revisions"}],"predecessor-version":[{"id":3190,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3188\/revisions\/3190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/3189"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=3188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=3188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=3188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}