{"id":152544,"date":"2020-09-06T20:20:17","date_gmt":"2020-09-06T12:20:17","guid":{"rendered":"http:\/\/4563.org\/?p=152544"},"modified":"2020-09-06T20:20:17","modified_gmt":"2020-09-06T12:20:17","slug":"go-%e6%9c%89%e6%b2%a1%e6%9c%89%e4%bb%80%e4%b9%88%e4%bc%98%e9%9b%85%e7%9a%84%e5%8a%9e%e6%b3%95%e5%8f%af%e4%bb%a5%e8%bf%9b%e8%a1%8c%e5%8d%95%e5%85%83%e6%b5%8b%e8%af%95%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152544","title":{"rendered":"go \u6709\u6ca1\u6709\u4ec0\u4e48\u4f18\u96c5\u7684\u529e\u6cd5\u53ef\u4ee5\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  go \u6709\u6ca1\u6709\u4ec0\u4e48\u4f18\u96c5\u7684\u529e\u6cd5\u53ef\u4ee5\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pkoukk <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u521a\u521a\u5165\u5751 golang \u6ca1\u591a\u4e45\uff0c\u7528 go \u5199\u4e86\u4e00\u4e2a\u5c0f\u7684\u9879\u76ee\uff0c\u9010\u6e10\u611f\u53d7\u5230\u4e86 go \u7684\u7279\u6027\u548c\u4f18\u70b9<br \/> \u4e3a\u4e86\u589e\u52a0\u9879\u76ee\u7684\u53ef\u9760\u6027\uff0c\u60f3\u5199\u4e00\u70b9\u5355\u5143\u6d4b\u8bd5\uff0c\u4f46\u662f\u53d1\u73b0\u4e86\u91cd\u91cd\u963b\u788d\uff0c\u4e3b\u8981\u662f\u5728 mock \u7684\u65f6\u5019\u5b9e\u5728\u662f\u592a\u590d\u6742\u4e86<br \/> \u4e2a\u4eba\u4f53\u9a8c\u4e0a\u611f\u89c9\uff0c\u65e0\u6cd5\u505a\u5230\u65e0\u4fb5\u5165\u6027\u7684 mock \u67d0\u4e9b func \u6216\u8005 struct \u3002<br \/> \u4e0b\u9762\u5199\u4e00\u4e0b\u81ea\u5df1\u7684\u505a\u6cd5\uff0c\u4e0d\u77e5\u9053\u662f\u56e0\u4e3a\u6211\u539f\u672c\u4ee3\u7801\u7ed3\u6784\u8bbe\u8ba1\u7684\u5c31\u4e0d\u5bf9\u8fd8\u662f mock \u7684\u59ff\u52bf\u4e0d\u5bf9\uff0c\u5e0c\u671b\u5927\u5bb6\u6307\u6b63<\/p>\n<p>\u51fd\u6570 mock \u3002<\/p>\n<p>\u5728\u4e00\u822c\u7684\u4f7f\u7528\u4e2d\u5047\u8bbe\u662f\u8fd9\u6837\u7684<\/p>\n<pre><code>func BaseFunc() {  info := getInfo(\"123\")  fmt.Printf(info) }  func getInfo(name string) string {  return name + \".cn\" }  func usage() {  BaseFunc() }  <\/code><\/pre>\n<p>\u5982\u679c\u6211\u9700\u8981 mock\uff0c\u5c31\u5f97<\/p>\n<pre><code>type getInfoFunc func(string) string  func BaseWithMock(getInfoV getInfoFunc) {  info := getInfoV(\"123\")  fmt.Printf(info) }  func mockGetInfo(name string) string {  return name + \".com\" }  func usage() {     \/\/ \u6b63\u5e38\u8c03\u7528     BaseWithMock(getInfo)     \/\/ mock  BaseWithMock(mockGetInfo) } <\/code><\/pre>\n<p>\u90a3\u4e48\u5c31\u5b58\u5728\u95ee\u9898\u4e86\uff0c\u5982\u679c\u6211\u7684 baseFunc \u5f53\u4e2d\u6709\u5f88\u591a\u6570\u636e\u5e93\u6216\u8005 API \u63a5\u53e3\uff0c\u5728\u5355\u5143\u6d4b\u8bd5\u7684\u65f6\u5019\u6211\u9700\u8981 mock \u4ed6\u4eec\u7684\u6570\u636e\uff0c<br \/> \u6211\u5c31\u5fc5\u987b\u8981\u5b9a\u4e49\u5f88\u591a\u4e2a type\uff0c\u7136\u540e\u5728 BaseFunc \u7684\u53c2\u6570\u91cc\u4f20\u8fdb\u6765\u4e48\uff1f\u611f\u89c9\u8fd9\u4e48\u505a\u5f88\u4e0d\u4f18\u96c5\u3002<\/p>\n<p>\u5982\u679c\u8bd5\u56fe\u53bb mock \u4e00\u4e2a\u5bf9\u8c61\uff0c\u6211\u611f\u89c9\u5c31\u66f4\u590d\u6742\u4e86..<br \/> \u4ee5\u4e0b\u662f\u67d0\u79cd\u7b80\u5316\u8fc7\u7684\u573a\u666f..<br \/> \u5047\u8bbe ServiceRecord \u4ee3\u8868\u4e00\u7cfb\u5217\u6570\u636e\u5e93\u548c API \u7b49\u6570\u636e\u64cd\u4f5c<br \/> Service \u5219\u4ee3\u8868\u5177\u4f53\u5904\u7406\u7684\u5bf9\u8c61\uff0c\u90a3\u4e48\u5982\u679c Service \u9700\u8981\u901a\u8fc7 ServiceRecord \u8bfb\u53d6\u67d0\u4e9b\u57fa\u7840\u4fe1\u606f\u7684\u573a\u666f\u3002<br \/> \u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u662f\u8fd9\u6837\u5199\u7684<\/p>\n<pre><code>type ServiceRecord struct {  Name   string  Fields map[string]string }  func (s *ServiceRecord) LoadFields() {  \/\/ some database work  result := map[string]string{   \"name\":    \"jack\",   \"address\": \"no.1 jack street\",   \"remark\":  \"none\",  }  s.Fields = result }  type Service struct {  Name  string  Owner string }  func (s *Service) ReadMoreInfo() {  r := &amp;ServiceRecord{Name: s.Name}  r.LoadFields()  s.Owner = r.Fields[\"name\"] }  func usage(serviceName string) {  s := &amp;Service{Name: serviceName}  s.ReadMoreInfo()  fmt.Print(s.Owner) }  <\/code><\/pre>\n<p>\u5982\u679c\u9700\u8981\u8fdb\u884c\u5355\u5143\u6d4b\u8bd5\uff0c\u6211\u4eec\u9700\u8981 mock \u6389\u6570\u636e\u5c42\uff0c\u4e5f\u5c31\u662f ServiceRecord \u8fd9\u4e2a\u5bf9\u8c61\u3002 \u4e00\u822c\u662f\u901a\u8fc7 Interface \u6765\u5b9e\u73b0\u8fd9\u4ef6\u4e8b\u60c5\u3002<\/p>\n<pre><code>type ServiceRecordInterface interface {     LoadFields()     \/\/ \u56e0\u4e3a Interface \u672c\u8eab\u4e0d\u5305\u542b\u6570\u636e\uff0c\u6240\u4ee5\u539f\u6765\u7684\u6240\u6709\u76f4\u63a5\u8bbf\u95ee\u5c5e\u6027\u7684\u5730\u65b9\uff0c\u90fd\u5fc5\u987b\u4f7f\u7528\u51fd\u6570\u6765\u5b9e\u73b0  GetField(string) string }  func (s *ServiceRecord) GetField(fieldName string) string {  return s.Fields[fieldName] }  \/\/ \u4e3a\u4e86 Mock\uff0c\u9700\u8981\u901a\u8fc7\u53c2\u6570\u628a\u63a5\u53e3\u4f20\u8fdb\u6765 func (s *Service) ReadMoreInfo(serviceRecord ServiceRecordInterface) {  serviceRecord.LoadFields()  s.Owner = serviceRecord.GetField(\"name\") }  \/\/ \u6b63\u5e38\u8c03\u7528\u65f6 func usage(serviceName string) {  s := &amp;Service{Name: serviceName}  s.ReadMoreInfoForMock(&amp;ServiceRecord{Name: serviceName})  fmt.Printf(s.Owner) }  \/\/ mock \u5bf9\u8c61 type ServiceRecordMock struct {  ServiceRecord }  \/\/ mock \u6389\u5177\u4f53\u7684\u51fd\u6570\u5b9e\u73b0 func (srm *ServiceRecordMock) LoadFields() {  result := map[string]string{   \"name\":    \"tony\",   \"address\": \"no.1 tony street\",   \"remark\":  \"none\",  }  srm.Fields = result }  \/\/ mock \u65f6 func mockUsage(serviceName string) {  s := &amp;Service{Name: serviceName}  s.ReadMoreInfoForMock(&amp;ServiceRecordMock{ServiceRecord{Name: serviceName}})  fmt.Printf(s.Owner) }  <\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\u8fd9\u4ecd\u7136\u5bf9\u539f\u6765\u7684\u4ee3\u7801\u4ea7\u751f\u4e86\u5f88\u5927\u7684\u5f71\u54cd\uff0c\u4e3a\u4e86\u6ee1\u8db3\u53ef mock\uff0c\u5fc5\u987b\u8981\u58f0\u660e\u4e00\u4e2a\u63a5\u53e3\uff0c\u800c\u4e14\u5fc5\u987b\u628a\u8fd9\u4e2a\u63a5\u53e3\u62bd\u79bb\u51fa\u6765\uff0c\u4f5c\u4e3a\u53c2\u6570\u6ce8\u5165\u5230\u8c03\u7528\u5bf9\u8c61\u91cc\u9762\u53bb\u3002<br \/> \u8ba9\u6211\u89c9\u5f97\u5f88\u5c34\u5c2c\u7684\u662f\uff0c\u91c7\u7528\u63a5\u53e3\u4e4b\u540e\uff0c\u5fc5\u987b\u901a\u8fc7\u51fd\u6570\u53bb get \u6216\u8005 set \u4e00\u4e2a\u5c5e\u6027\uff0c\u611f\u89c9\u5f88\u4e0d\u4f18\u96c5\uff0c\u4ea7\u751f\u4e86\u5f88\u591a\u6ca1\u6709\u5fc5\u8981\u7684\u5783\u573e\u4ee3\u7801\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3196306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangsyi13 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u6ce8\u4e00\u4e0b\uff0c\u6211\u4e5f\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u6700\u8fd1\u8f6c go\uff0c\u63a5\u89e6\u65b0\u9879\u76ee\uff0c\u60f3\u5199\u4e9b\u5355\u5143\u6d4b\u8bd5\uff0c\u53d1\u73b0\u53ea\u8981\u6d89\u53ca\u4e1a\u52a1\u7684\u5c31\u5173\u8054\u592a\u591a\uff0c\u5f88\u96be\u5b9e\u73b0\uff0c\u53ef\u80fd\u9879\u76ee\u8bbe\u8ba1\u4e4b\u521d\u5c31\u6ca1\u6709\u8003\u8651\u5355\u5143\u6d4b\u8bd5\uff0c\u4f46\u662f\u5982\u679c\u8003\u8651\u7684\u8bdd\uff0c\u9879\u76ee\u7ed3\u6784\u8bbe\u8ba1\u5e94\u8be5\u9075\u5faa\u54ea\u4e9b\u539f\u5219\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abser <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5355\u5143\u6d4b\u8bd5\u9700\u8981 mock \u7684\u5f88\u5c11, \u4e00\u822c\u76f4\u63a5\u6d4b\u8bd5\u51fd\u6570\u8f93\u5165\u8f93\u51fa, \u76f4\u63a5\u7ed9\u7528\u4f8b\u6d4b.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pkoukk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @abser \u90a3\u6709\u6570\u636e\u6216\u8005\u5916\u90e8\u4f9d\u8d56\u7684\u51fd\u6570\u600e\u4e48\u529e\u5462\uff1f\u4e0d\u6d4b\u4e86\u4e48\uff1f&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cloudzhou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u4e8e Go \u7684\u5355\u5143\u6d4b\u8bd5\uff0c\u4e00\u4e0b\u662f\u6211\u7684\u51e0\u4e2a\u601d\u8003\u70b9\uff1a<\/p>\n<p>1. \u57fa\u4e8e interface \u7684 mock\uff0c\u8fd9\u662f\u9762\u5411\u63a5\u53e3\u53ef\u63d2\u62d4\uff0c\u5df2\u7ecf\u5f88\u6210\u719f\uff0c\u5c31\u662f\u5b9e\u73b0\u5bf9\u5e94\u7684 mock \u63a5\u53e3\u5b9e\u73b0\u6ce8\u5165\uff0c\u5177\u4f53\u65b9\u6cd5 mock\uff0c\u5177\u4f53\u4e0d\u8bf4\u4e86<\/p>\n<p>2. \u9762\u5411\u65b9\u6cd5\u7684 mock\uff0c\u4f7f\u7528 context \u6a21\u578b\uff0c\u8fdb\u884c mock \u65b9\u6cd5\u6ce8\u5165<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<p>https:\/\/play.golang.org\/p\/z5RDSVcTSWD                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cloudzhou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pkoukk \u4ee5\u4e0a\uff0c\u53ef\u4ee5\u505a\u5230\u9488\u5bf9\u51fd\u6570\u7cbe\u786e\u7684 mock\uff0c\u6309\u9700\u5b9e\u73b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196311\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vvmint233 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9762\u5411\u6570\u636e\u5e93\u7684 mock \u7684\u8bdd\u76f4\u63a5 mock \u6389\u5e95\u5c42\u7684 db \u5bf9\u8c61, \u5e95\u5c42\u7684 db \u5bf9\u8c61\u4e0d\u662f interface \u7684\u8bdd\u6211\u4e00\u822c\u672c\u5730\u8d77\u4e00\u4e2a\u6570\u636e\u5e93\u6216\u8005 sqlite3 \u505a mock \u6570\u636e\u6e90, \u8fd9\u6837\u5c31\u53ea\u9700\u8981\u6784\u9020\u6570\u636e\u6216\u8005 sql \u6587\u4ef6, \u7f3a\u70b9\u662f\u5bf9 ci\/cd \u4e0d\u53cb\u597d. \u4e0d\u8fc7\u4f60\u53ef\u4ee5\u68c0\u67e5\u4f60 io \u90e8\u5206\u7684\u51fd\u6570\u6709\u6ca1\u6709\u95ee\u9898, \u903b\u8f91\u90e8\u5206\u7684\u51fd\u6570\u76f4\u63a5\u6784\u9020\u8f93\u5165\u8f93\u51fa Test \u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u770b goframe                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pkoukk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vvmint233 \u662f\u7684..\u53ea\u4e0d\u8fc7\u8fd9\u4e48\u505a\u66f4\u50cf\u662f\u8dd1\u5728\u672c\u5730\u7684\u96c6\u6210\u6d4b\u8bd5\u4e86\uff0c\u4e0d\u90a3\u4e48\u50cf\u5355\u6d4b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196314\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pkoukk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzw https:\/\/goframe.org\/quality\/unittest<br \/>\u4e09\u4e2a\u5b57\uff0c\u5f85\u5b8c\u5584                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196315\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cloudzhou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vvmint233 @pkoukk \u8d44\u6e90\u6027\u7684\u4f9d\u8d56\uff0c\u6211\u66f4\u503e\u5411\u4e0d\u8981 mock \u8d44\u6e90\uff0c\u800c\u662f\u6309\u9700\u6784\u5efa\u8d44\u6e90\uff0c\u5176\u5b9e\u4ee3\u4ef7\u5f88\u5c0f<br \/>\u6211\u505a\u8fc7\u4e00\u4e2a\u6d4b\u8bd5\u9879\u76ee\uff0c\u5c31\u662f\u5c06\u6240\u6709\u8d44\u6e90 Docker \u5316\uff0c\u5e76\u4e14\u505a\u597d\u521d\u59cb\uff0c\u7ed3\u675f\u52a8\u4f5c<br \/>Mysql \/ Redis \u90fd\u662f\u8c03\u7528 Docker\uff0c\u201c\u8d44\u6e90\u5373\u670d\u52a1\u201d\uff0c\u751a\u81f3\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a pool \u6765\u91cd\u590d\u5229\u7528<\/p>\n<p>\u539f\u56e0\u5728\u4e8e\uff0c\u5982\u679c\u8d44\u6e90 mock\uff0c\u53ef\u4ee5\u4e0d\u80fd\u6d4b\u8bd5\u5230\u4f7f\u7528\u8d44\u6e90\u7684\u9519\u8bef\uff0c\u6bd4\u5982\u4e00\u6761 SQL \u8bed\u53e5\u5176\u5b9e\u9519\u4e86\uff0c\u4f46\u662f\u4e0d\u80fd\u53d1\u73b0                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196316\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             java \u548c c#\u7684\u7279\u6027\u624d\u521a\u521a\u8db3\u591f\u4f7f\u7528\u3002\u5bf9\u4e8e golang \u8fd9\u79cd\u4e10\u7248\u7684\u8bed\u8a00\uff0c\u4f60\u8fd8\u671f\u671b\u4ec0\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196317\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pkoukk #9 \u6ca1\u6587\u6863\u800c\u5df2\u5427, \u4f60\u770b\u770b\u4f8b\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196318\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : limboMu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8dd1\u5355\u5143\u6d4b\u8bd5\u8bf4\u660e\u9700\u8981 mock \u8bf4\u660e\u4f60\u7684\u65b9\u6cd5\u672c\u8eab\u5c31\u4e0d\u662f\u7eaf\u51fd\u6570\uff0c\u603b\u5f52\u662f\u9700\u8981\u4e00\u4e2a\u73af\u5883(ctx)\u6267\u884c\u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3196319\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rim99 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u770b\u4e0a\u7684\u8ba8\u8bba\uff0c\u4e5f\u6709\u4e86\u4e9b\u7ed3\u8bba\uff1a<br \/>1. \u5bf9\u5916\u90e8\u73af\u5883\u3001\u6846\u67b6\u6709\u4e25\u91cd\u4f9d\u8d56\u7684\u4ee3\u7801\uff0c\u5e94\u8be5\u4ece\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91\u4e2d\u62bd\u79bb\u51fa\u53bb\uff0c\u7528\u96c6\u6210\u6d4b\u8bd5\u8986\u76d6\u3002<br \/>2. \u6838\u5fc3\u4e1a\u52a1\u5185\u90e8\u4f7f\u7528\u63a5\u53e3\u5b8c\u6210\u903b\u8f91\u7684\u7ec4\u7ec7\uff0c\u7528\u5355\u5143\u6d4b\u8bd5\u8986\u76d6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>go \u6709\u6ca1\u6709\u4ec0\u4e48\u4f18\u96c5\u7684\u529e\u6cd5\u53ef\u4ee5\u8fdb\u884c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152544"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152544"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152544\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152544"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}