{"id":94741,"date":"2026-08-15T06:49:15","date_gmt":"2026-08-14T22:49:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94741.html"},"modified":"2026-08-15T06:49:15","modified_gmt":"2026-08-14T22:49:15","slug":"go-cli%e5%b7%a5%e5%85%b7%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e4%bb%8ecobra%e5%88%b0%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%ba%94%e7%94%a8%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94741.html","title":{"rendered":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5"},"content":{"rendered":"<h2>Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u7684\u4f01\u4e1a\u7ea7\u5b9e\u8df5<\/h2>\n<h3>\u6587\u7ae0\u5bfc\u8bed<\/h3>\n<p>Go\u7f16\u8bd1\u4e3a\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff0c;\u662fCLI\u5de5\u5177\u5f00\u53d1\u7684\u7edd\u4f73\u8bed\u8a00\u3002cobra&#043;pflag\u662fGo CLI\u5f00\u53d1\u7684\u4e8b\u5b9e\u6807\u51c6&#xff0c;Kubernetes\u3001Hugo\u3001etcd\u7b49\u77e5\u540d\u9879\u76ee\u90fd\u4f7f\u7528\u8fd9\u5957\u7ec4\u5408\u3002<\/p>\n<h3>\u4e00\u3001cobra\u9879\u76ee\u521d\u59cb\u5316<\/h3>\n<p><span class=\"token keyword\">var<\/span> rootCmd <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>cobra<span class=\"token punctuation\">.<\/span>Command<span class=\"token punctuation\">{<\/span><br \/>\n    Use<span class=\"token punctuation\">:<\/span>   <span class=\"token string\">&#034;mycli&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    Short<span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u4e00\u4e2a\u793a\u4f8bCLI\u5de5\u5177&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    Run<span class=\"token punctuation\">:<\/span> <span class=\"token keyword\">func<\/span><span class=\"token punctuation\">(<\/span>cmd <span class=\"token operator\">*<\/span>cobra<span class=\"token punctuation\">.<\/span>Command<span class=\"token punctuation\">,<\/span> args <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        fmt<span class=\"token punctuation\">.<\/span><span class=\"token function\">Println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Hello CLI!&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">init<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    rootCmd<span class=\"token punctuation\">.<\/span><span class=\"token function\">PersistentFlags<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">StringVar<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>configFile<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;config&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;config.yaml&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u914d\u7f6e\u6587\u4ef6\u8def\u5f84&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> err <span class=\"token operator\">:&#061;<\/span> rootCmd<span class=\"token punctuation\">.<\/span><span class=\"token function\">Execute<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> err <span class=\"token operator\">!&#061;<\/span> <span class=\"token boolean\">nil<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        os<span class=\"token punctuation\">.<\/span><span class=\"token function\">Exit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4e8c\u3001\u5b50\u547d\u4ee4\u4e0e\u53c2\u6570\u9a8c\u8bc1<\/h3>\n<p><span class=\"token keyword\">var<\/span> serveCmd <span class=\"token operator\">&#061;<\/span> <span class=\"token operator\">&amp;<\/span>cobra<span class=\"token punctuation\">.<\/span>Command<span class=\"token punctuation\">{<\/span><br \/>\n    Use<span class=\"token punctuation\">:<\/span>   <span class=\"token string\">&#034;serve&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    Short<span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u542f\u52a8\u670d\u52a1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    PreRunE<span class=\"token punctuation\">:<\/span> <span class=\"token keyword\">func<\/span><span class=\"token punctuation\">(<\/span>cmd <span class=\"token operator\">*<\/span>cobra<span class=\"token punctuation\">.<\/span>Command<span class=\"token punctuation\">,<\/span> args <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token builtin\">error<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> port <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">1024<\/span> <span class=\"token operator\">||<\/span> port <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">65535<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">return<\/span> fmt<span class=\"token punctuation\">.<\/span><span class=\"token function\">Errorf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u7aef\u53e3\u8303\u56f4: 1024-65535&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">nil<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    RunE<span class=\"token punctuation\">:<\/span> <span class=\"token keyword\">func<\/span><span class=\"token punctuation\">(<\/span>cmd <span class=\"token operator\">*<\/span>cobra<span class=\"token punctuation\">.<\/span>Command<span class=\"token punctuation\">,<\/span> args <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token builtin\">string<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token builtin\">error<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token function\">startServer<\/span><span class=\"token punctuation\">(<\/span>port<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">func<\/span> <span class=\"token function\">init<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    serveCmd<span class=\"token punctuation\">.<\/span><span class=\"token function\">Flags<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">IntVarP<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>port<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;port&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;p&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">8080<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u76d1\u542c\u7aef\u53e3&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    rootCmd<span class=\"token punctuation\">.<\/span><span class=\"token function\">AddCommand<\/span><span class=\"token punctuation\">(<\/span>serveCmd<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4e09\u3001\u5168\u6587\u603b\u7ed3<\/h3>\n<p>cobra\u547d\u4ee4\u884c\u6846\u67b6&#xff0c;viper\u914d\u7f6e\u6587\u4ef6\u7ba1\u7406&#xff0c;PreRunE\u53c2\u6570\u9a8c\u8bc1&#xff0c;RunE\u9519\u8bef\u8fd4\u56de&#xff0c;cobra\u547d\u4ee4\u6811\u5b9e\u73b0\u5b50\u547d\u4ee4\u3002<\/p>\n<h3>\u53c2\u8003\u6587\u732e<\/h3>\n<li>cobra: https:\/\/github.com\/spf13\/cobra<\/li>\n<li>viper: https:\/\/github.com\/spf13\/viper<\/li>\n<li>Go\u6807\u51c6\u5e93 flag\u5305<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u7684\u4f01\u4e1a\u7ea7\u5b9e\u8df5<br \/>\n\u6587\u7ae0\u5bfc\u8bed<br \/>\nGo\u7f16\u8bd1\u4e3a\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff0c;\u662fCLI\u5de5\u5177\u5f00\u53d1\u7684\u7edd\u4f73\u8bed\u8a00\u3002cobrapflag\u662fGo CLI\u5f00\u53d1\u7684\u4e8b\u5b9e\u6807\u51c6&#xff0c;Kubernetes\u3001Hugo\u3001etcd\u7b49\u77e5\u540d\u9879\u76ee\u90fd\u4f7f\u7528\u8fd9\u5957\u7ec4\u5408\u3002<br \/>\n\u4e00\u3001cobra\u9879\u76ee\u521d\u59cb\u5316<br \/>\nvar rootCmd  &amp;cobra.Command{Use:   \\&#8221;mycli\\&#8221;,Short: \\&#8221;\u4e00\u4e2a\u793a\u4f8bCLI\u5de5\u5177\\&#8221;,Run: func(cmd *cobra.Command, <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[746],"topic":[],"class_list":["post-94741","post","type-post","status-publish","format-standard","hentry","category-server","tag-golang"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/94741.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u7684\u4f01\u4e1a\u7ea7\u5b9e\u8df5 \u6587\u7ae0\u5bfc\u8bed Go\u7f16\u8bd1\u4e3a\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff0c;\u662fCLI\u5de5\u5177\u5f00\u53d1\u7684\u7edd\u4f73\u8bed\u8a00\u3002cobrapflag\u662fGo CLI\u5f00\u53d1\u7684\u4e8b\u5b9e\u6807\u51c6&#xff0c;Kubernetes\u3001Hugo\u3001etcd\u7b49\u77e5\u540d\u9879\u76ee\u90fd\u4f7f\u7528\u8fd9\u5957\u7ec4\u5408\u3002 \u4e00\u3001cobra\u9879\u76ee\u521d\u59cb\u5316 var rootCmd &amp;cobra.Command{Use:  &quot;mycli&quot;,Short: &quot;\u4e00\u4e2a\u793a\u4f8bCLI\u5de5\u5177&quot;,Run: func(cmd *cobra.Command,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94741.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-14T22:49:15+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94741.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94741.html\",\"name\":\"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-14T22:49:15+00:00\",\"dateModified\":\"2026-08-14T22:49:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94741.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94741.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94741.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/94741.html","og_locale":"zh_CN","og_type":"article","og_title":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u7684\u4f01\u4e1a\u7ea7\u5b9e\u8df5 \u6587\u7ae0\u5bfc\u8bed Go\u7f16\u8bd1\u4e3a\u5355\u4e8c\u8fdb\u5236\u6587\u4ef6&#xff0c;\u662fCLI\u5de5\u5177\u5f00\u53d1\u7684\u7edd\u4f73\u8bed\u8a00\u3002cobrapflag\u662fGo CLI\u5f00\u53d1\u7684\u4e8b\u5b9e\u6807\u51c6&#xff0c;Kubernetes\u3001Hugo\u3001etcd\u7b49\u77e5\u540d\u9879\u76ee\u90fd\u4f7f\u7528\u8fd9\u5957\u7ec4\u5408\u3002 \u4e00\u3001cobra\u9879\u76ee\u521d\u59cb\u5316 var rootCmd &amp;cobra.Command{Use:  \"mycli\",Short: \"\u4e00\u4e2a\u793a\u4f8bCLI\u5de5\u5177\",Run: func(cmd *cobra.Command,","og_url":"https:\/\/www.wsisp.com\/helps\/94741.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-14T22:49:15+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94741.html","url":"https:\/\/www.wsisp.com\/helps\/94741.html","name":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-14T22:49:15+00:00","dateModified":"2026-08-14T22:49:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94741.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94741.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94741.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Go-CLI\u5de5\u5177\u5f00\u53d1\u5b9e\u6218\u4ececobra\u5230\u547d\u4ee4\u884c\u5e94\u7528\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=94741"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94741\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94741"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}