{"id":88224,"date":"2020-02-09T14:21:39","date_gmt":"2020-02-09T06:21:39","guid":{"rendered":"http:\/\/4563.org\/?p=88224"},"modified":"2020-02-09T14:21:39","modified_gmt":"2020-02-09T06:21:39","slug":"golang-go-mod-%e9%97%ae%e9%a2%98%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=88224","title":{"rendered":"golang go mod \u95ee\u9898\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  golang go mod \u95ee\u9898\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xmge <\/span>  <span><i><\/i> 17<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>package main  import (  log \"github.com\/sirupsen\/logrus\" (\u7ea2\u8272) )  func main() {  log.WithFields(log.Fields{   \"animal\": \"walrus\",  }).Info(\"A walrus appears\") } <\/code><\/pre>\n<p>\u521a\u5f00\u59cb\u7528 go mod \u4e3a\u4ec0\u4e48\u5728 goland \u5f53\u4e2d\uff0c\u53ef\u4ee5\u7f16\u8bd1\u8fd0\u884c\uff0c\u4f46\u662f\u663e\u793a\u6ca1\u6709\u5f15\u5165\u5305\u3002<\/p>\n<p>1 \u3001setting-vendoring mod \u4e5f\u5f00\u542f\u4e86\u3002<\/p>\n<p>2 \u3001gopath \u4e5f\u6ca1\u6709\u8bbe\u7f6e<\/p>\n<\/p><\/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=\"1137250\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xmge <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u89e3\u51b3\u65b9\u6848\uff1a\u66f4\u65b0 goland                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1137251\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Pythondr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728 golang \u4e2d\u542f\u7528 go mod                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1137252\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fanpei0121 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             settings-&gt;Go-&gt;Go Modules<\/p>\n<p>Vgo Excutable: Project SDK<br \/>proxy : https:\/\/goproxy.io<br \/>\u8bbe\u7f6e\u540e\u91cd\u542f goland                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1137253\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xmge <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fanpei0121 <br \/>@Pythondr <\/p>\n<p>\u611f\u8c22\uff0c\u66f4\u65b0\u4e86\u4e0b goland \u5c31\u884c\u4e86\uff0c\u53ef\u80fd\u662f goland \u7684\u7248\u672c\u95ee\u9898                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>golang go mod \u95ee\u9898\u3002&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\/88224"}],"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=88224"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88224\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}