{"id":226062,"date":"2020-12-16T23:58:47","date_gmt":"2020-12-16T15:58:47","guid":{"rendered":"http:\/\/4563.org\/?p=226062"},"modified":"2020-12-16T23:58:47","modified_gmt":"2020-12-16T15:58:47","slug":"%e5%85%b3%e4%ba%8e-github-%e4%b8%8a%e4%b8%80%e4%b8%aa%e6%b5%81%e8%a1%8c%e7%9a%84-go-%e6%a8%a1%e7%89%88%e9%87%87%e7%94%a8-ddd-%e9%a1%b9%e7%9b%ae%e7%bb%84%e7%bb%87%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=226062","title":{"rendered":"\u5173\u4e8e Github \u4e0a\u4e00\u4e2a\u6d41\u884c\u7684 Go \u6a21\u7248\u91c7\u7528 DDD \u9879\u76ee\u7ec4\u7ec7\u65b9\u5f0f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5173\u4e8e Github \u4e0a\u4e00\u4e2a\u6d41\u884c\u7684 Go \u6a21\u7248\u91c7\u7528 DDD \u9879\u76ee\u7ec4\u7ec7\u65b9\u5f0f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Philippa <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1a https:\/\/github.com\/golang-standards\/project-layout<\/p>\n<p>\u6700\u8fd1\u6709\u5f00\u4e00\u4e2a Go \u9879\u76ee\u7684\u9700\u6c42\uff0c\u867d\u7136 DDD \u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u4f46\u770b\u5230\u9879\u76ee\u7684\u7ed3\u6784\u7ec4\u7ec7\u65b9\u5f0f\u5176\u5b9e\u6709\u70b9\u65e0\u4ece\u4e0a\u624b\u3002\u5173\u4e8e\u8fd9\u4e2a\uff0c\u6709\u4e00\u4e2a YouTube \u6f14\u8bb2\u89c6\u9891\u51e0\u5e74\u524d\u4e5f\u63d0\u5230\u4e86\uff1a https:\/\/www.youtube.com\/watch?v=oL6JBUk6tj0 \u3002<\/p>\n<p>\u89c6\u9891\u91cc\u5305\u542b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u548c\u4e00\u4e9b\u89e3\u91ca\u3002\u770b\u8d77\u6765\u548b\u633a\u6709\u9053\u7406\u7684\uff0c\u4f46\u8fd9\u79cd\u62bd\u8c61\u548c\u7f3a\u4e4f\u660e\u786e\u8fb9\u754c\u7684\u6982\u5ff5\u6027\u63cf\u8ff0\u662f\u65e0\u6cd5\u8bf4\u6e05\u695a DDD \u672c\u8eab\u662f\u4ec0\u4e48\u7684\u3002DDD \u91cc\u9762\u63d0\u5230\u4e0d\u540c\u7684\u9886\u57df\u6709\u201c\u975e\u5e38\u660e\u786e\u7684\u8fb9\u754c\u201d\uff0c\u4f46\u6211\u89c9\u5f97\u5b83\u6709\u70b9\u81ea\u76f8\u77db\u76fe\uff0c\u56e0\u4e3a\u5b83\u672c\u8eab\u7684\u63cf\u8ff0\u5c31\u7f3a\u4e4f\u201c\u975e\u5e38\u660e\u786e\u7684\u8fb9\u754c\u201d\u3002\u4e0e\u53ef\u4ee5\u91cf\u5316 \/\u6216\u6709\u660e\u786e\u6d41\u7a0b\u56fe\u7684 MVC \u4e0d\u540c\uff0cDDD \u6709\u591a\u4e2a\u6982\u5ff5\uff0c\u7a0d\u5fae\u6df1\u5165\u60f3\u60f3\u5c31\u53d1\u73b0\u5f88\u591a\u6982\u5ff5\u4e0a\u7684\u91cd\u53e0\u3002\u628a DDD \u770b\u6210 \u201c\u601d\u7ef4\u6a21\u5f0f\u201d \u662f\u6ca1\u9519\uff0c\u4f46\u52a8\u624b\u4e4b\u524d\u9700\u8981\u7684\u8fd8\u662f \u201c\u6807\u51c6\u5316\u201d\u3002<\/p>\n<p>\u4e3a\u6b64\u6211\u4e0a\u7f51\u5bfb\u627e\u4e86\u4e00\u904d Go Web \u9879\u76ee\u7684 DDD boilerplate\uff0c\u57fa\u672c\u4e0a\u4e5f\u662f\u5404\u6709\u5404\u7684\u98ce\u683c\u3002\u4e0e\u4e0a\u9762\u9879\u76ee\u8fd1 2 \u4e07\u4e2a\u7684 stars \u76f8\u6bd4\uff0c\u5b9e\u9645\u53d1\u73b0\u7684\u9879\u76ee\u5b8c\u5168\u4e0d\u5728\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002\u6240\u4ee5\u770b\u5f97\u6709\u70b9\u65e0\u6240\u9002\u4ece\u3002\u56e0\u4e3a\u5373\u4f7f\u6211\u81ea\u5df1\u6309\u7167\u81ea\u5df1\u7684\u7406\u89e3\u6784\u5efa\u4e86\u9879\u76ee\uff0c\u6211\u4e5f\u65e0\u6cd5\u4fdd\u8bc1\u80fd\u5411\u6211\u7684\u540c\u4e8b\u89e3\u91ca\u6e05\u695a\u3002\u4e0d\u77e5\u9053\u5404\u4f4d\u662f\u5982\u4f55\u7ec4\u7ec7\u81ea\u5df1\u7684\u9879\u76ee\u7684\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4579952\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : baiyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Bilibili \u7684 Go \u8bed\u8a00\u5de5\u7a0b\u5316\u5b9e\u8df5 https:\/\/time.geekbang.org\/dailylesson\/detail\/100040852<\/p>\n<p>\u6709\u5173\u4e8e\u9879\u76ee\u7ec4\u7ec7\u5e03\u5c40\u7684\u65b9\u5f0f\uff0c\u4f46\u6ca1\u6709\u63d0\u5230 DDD\uff0c\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4579953\" 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>                                                             \u5148\u5b66\u4f1a C#\/java \u600e\u4e48 DDD\uff0c\u4f60\u5c31\u77e5\u9053 go \u600e\u4e48 DDD \u4e86 https:\/\/github.com\/dotnet-architecture\/eShopOnContainers                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e Github \u4e0a\u4e00\u4e2a\u6d41\u884c\u7684 &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\/226062"}],"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=226062"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/226062\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226062"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}