{"id":225351,"date":"2020-12-03T01:25:50","date_gmt":"2020-12-02T17:25:50","guid":{"rendered":"http:\/\/4563.org\/?p=225351"},"modified":"2020-12-17T22:57:42","modified_gmt":"2020-12-17T14:57:42","slug":"%e8%af%b7%e6%95%99-golang-%e7%9a%84-mgo-%e9%93%be%e6%8e%a5%e6%b1%a0%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=225351","title":{"rendered":"\u8bf7\u6559 golang \u7684 mgo \u94fe\u63a5\u6c60\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559 golang \u7684 mgo \u94fe\u63a5\u6c60\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xyxy <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e0d\u8bb0\u5f97\u4ece\u54ea\u91cc\u6284\u7684\u4ee3\u7801\u4e86\uff0c\u6700\u8fd1\u53d1\u73b0 mongodb \u94fe\u63a5\u6c60\u597d\u591a \u7136\u540e mongod \u6302\u6389\u3002 \u7ffb\u4ee3\u7801\u53d1\u73b0\u6ca1\u6709\u5199\u5173\u95ed\u94fe\u63a5\u6c60\u7684\u3002 \u6211\u662f\u5c0f\u767d\u767d\uff0c\u8bf7\u6559\u4e0b\u8fd9\u4e2a\u5173\u95ed\u94fe\u63a5\u6c60\u7684\u4ee3\u7801\u5728\u76ee\u524d\u7684\u5199\u6cd5\u4e0a\u52a0\u5230\u54ea\u91cc\u3002<\/p>\n<p> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/20201217_5fdb719a3441e.png\" alt=\"\u8bf7\u6559 golang \u7684 mgo \u94fe\u63a5\u6c60\u95ee\u9898\" \/> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/7ccNNBpnMREdV7Fa.pngthumbnail.png\" alt=\"\u8bf7\u6559 golang \u7684 mgo \u94fe\u63a5\u6c60\u95ee\u9898\" \/>  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4557531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : securityCoding <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u5199\u4e00\u4e2a graceful \u94a9\u5b50,\u76d1\u542c\u7cfb\u7edf\u4fe1\u53f7\u81ea\u5df1\u5173\u6389\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kevinwan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/tal-tech\/go-zero                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kevinwan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u9762\u4e00\u6761\u4e0d\u5c0f\u5fc3\u6309\u56de\u8f66\u4e86\uff0c\u8fd9\u91cc\u6709\u5c01\u88c5\u597d\u7684\u53ef\u4ee5\u76f4\u63a5\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4557534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ym1ng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u95ee\u9898\u6211\u77e5\u9053 session \u5e94\u8be5\u5f04\u4e2a\u5168\u5c40\u552f\u4e00\u7684\u5355\u4f8b \u4e1a\u52a1\u4ee3\u7801\u91cc\u9762\u9700\u8981\u7528 mongo session \u7684\u65f6\u5019\u4ece\u90a3\u4e2a\u5355\u4f8b\u91cc\u9762 Copy \u4e00\u4e2a\u51fa\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559 golang \u7684 mgo \u94fe&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\/225351"}],"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=225351"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225351\/revisions"}],"predecessor-version":[{"id":225353,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225351\/revisions\/225353"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225351"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}