{"id":2272,"date":"2024-01-13T14:30:30","date_gmt":"2024-01-13T06:30:30","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2272"},"modified":"2024-01-13T14:31:14","modified_gmt":"2024-01-13T06:31:14","slug":"golang-mod-import-red","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2024\/01\/13\/golang-mod-import-red\/","title":{"rendered":"golang\u5f00\u542fmod\u540eimport\u62a5\u7ea2\u89e3\u51b3"},"content":{"rendered":"<p>golang\u9879\u76ee\u5f00\u542fmod\u6a21\u5f0f\u5e76\u5b89\u88c5\u4f9d\u8d56\u5b8c\u6210\u540e\uff0cimport\u5bfc\u5165\u4ee3\u7801\u4ecd\u7136\u98d8\u7ea2<\/p>\n<p>\u539f\u56e0\u662f\u7d22\u5f15\u8def\u5f84\u95ee\u9898\uff0c\u6b64\u65f6\u5f53\u524d\u9879\u76ee\u7684\u4f9d\u8d56\u8def\u5f84\uff0c\u53ef\u4ee5\u770b\u5230<code>External Libraries<\/code>\u53ea\u6709Go SDK\uff0c\u5e76\u6ca1\u6709Go Modules<\/p>\n<p>\u89e3\u51b3\uff1a<code>File<\/code> -&gt; <code>Settings<\/code> -&gt; <code>Languages &amp; Frameworks<\/code> -&gt; <code>Go<\/code> -&gt; <code>Go Modules<\/code> -&gt; \u52fe\u9009 <code>Enable Go Modules (vgo) integration<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.appblog.cn\/wp-content\/uploads\/2024\/01\/Enable-Go-Modules-vgo-integration-1024x611.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>golang\u9879\u76ee\u5f00\u542fmod\u6a21\u5f0f\u5e76\u5b89\u88c5\u4f9d\u8d56\u5b8c\u6210\u540e\uff0cimport\u5bfc\u5165\u4ee3\u7801\u4ecd\u7136\u98d8\u7ea2 \u539f\u56e0\u662f\u7d22\u5f15\u8def\u5f84\u95ee\u9898\uff0c\u6b64\u65f6\u5f53\u524d\u9879\u76ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[573],"tags":[137],"class_list":["post-2272","post","type-post","status-publish","format-standard","hentry","category-golang","tag-go"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2272"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2272\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}