{"id":6405,"date":"2022-01-24T09:29:00","date_gmt":"2022-01-24T01:29:00","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=6405"},"modified":"2024-01-16T17:04:47","modified_gmt":"2024-01-16T09:04:47","slug":"vscode","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2022\/01\/24\/vscode\/","title":{"rendered":"vscode\u5b89\u88c5go\u63d2\u4ef6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1\u3001\u6253\u5f00vscode\u8f6f\u4ef6\uff0c\u6253\u5f00\u540e\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\uff0c\u641c\u7d22\u6846\u4e2d\u8f93\u5165Go\uff0c\u9009\u62e9\u7b2c\u4e00\u4e2a\u8fdb\u884c\u5b89\u88c5\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"312\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/5-5.png\" alt=\"\" class=\"wp-image-6406\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/5-5.png 703w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/5-5-300x133.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/5-5-600x266.png 600w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u5b89\u88c5Go\u8bed\u8a00\u5f00\u53d1\u5de5\u5177\u5305\uff0c\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u63d0\u4f9b\u4ee3\u7801\u63d0\u793a\uff0c\u81ea\u52a8\u8865\u5168\u529f\u80fd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6e\u4ee3\u7406\uff1a\u7531\u4e8e\u56fd\u5185\u7f51\u7edc\u7684\u539f\u56e0\uff0c\u5bf9\u4e8e\u4e00\u4e9b<a rel=\"noreferrer noopener\" href=\"https:\/\/so.csdn.net\/so\/search?q=golang&amp;spm=1001.2101.3001.7020\" target=\"_blank\">golang<\/a>\u7684\u5f00\u53d1\u5305\u4e0b\u8f7d\u4e0d\u6210\u529f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GO111MODULE=on\nGOPROXY=https:\/\/goproxy.cn,direct\ngo env -w GOPROXY=https:\/\/goproxy.cn,direct  \/\/Linux\u6267\u884c\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u5728\u7cfb\u7edf\u53d8\u91cf\u4e2d\uff0c\u6dfb\u52a0\u4e0a\u8ff0\u4e24\u4e2a\u53d8\u91cf\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"218\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/8-3.png\" alt=\"\" class=\"wp-image-6410\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/8-3.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/8-3-300x93.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/8-3-600x186.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728windows\u5e73\u53f0\u4e0b\u6309ctrl + shift +p\uff0c\u5728\u641c\u7d20\u6846\u4e2d\u8f93\u5165go:install\uff0c\u9009\u62e9Go:Install\/Update Tools\uff0c\u70b9\u51fb\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"265\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/6-5.png\" alt=\"\" class=\"wp-image-6407\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/6-5.png 702w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/6-5-300x113.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/6-5-600x226.png 600w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u9009\u62e9\u5168\u90e8\u5de5\u5177\u540e\uff0c\u70b9\u51fb\u786e\u5b9a\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"292\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/7-4.png\" alt=\"\" class=\"wp-image-6408\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/7-4.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/7-4-300x124.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/7-4-600x248.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"368\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/9-3.png\" alt=\"\" class=\"wp-image-6412\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/9-3.png 710w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/9-3-300x155.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/9-3-600x311.png 600w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u5de5\u5177\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6269\u5c55\u4e2d\u641c\u7d22Code Runner\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u4e3b\u9875\u9762\u53f3\u4e0a\u89d2\u5c31\u53ef\u4ee5\u770b\u5230\u8fd0\u884c\u6309\u94ae\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee3\u7801\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"265\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/11-2.png\" alt=\"\" class=\"wp-image-6416\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/11-2.png 709w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/11-2-300x112.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/01\/11-2-600x224.png 600w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">vscode\u914d\u7f6e\u5feb\u6377\u952e\u4f7f\u5176\u53ef\u4ee5\u5feb\u901f\u5411\u4e0b\u590d\u5236\u4e00\u884c\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5f00vscode\uff0c\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u8bbe\u7f6e&#8211;\u5feb\u6377\u952e\u8bbe\u7f6e\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"274\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/1-3.jpg\" alt=\"\" class=\"wp-image-16082\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/1-3.jpg 690w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/1-3-300x119.jpg 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/1-3-600x238.jpg 600w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u627e\u5230Copy Line Down\uff0c\u4fee\u6539\u4e3a\u60f3\u8981\u8bbe\u7f6e\u7684\u5feb\u6377\u952e\u5373\u53ef\uff0c\u6211\u8bbe\u7f6e\u7684\u4e3actrl + j ,\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"211\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/2.png\" alt=\"\" class=\"wp-image-16083\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/2.png 691w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/2-300x92.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2024\/01\/2-600x183.png 600w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u6253\u5f00vscode\u8f6f\u4ef6\uff0c\u6253\u5f00\u540e\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\uff0c\u641c\u7d22\u6846\u4e2d\u8f93\u5165Go\uff0c\u9009\u62e9\u7b2c\u4e00\u4e2a\u8fdb\u884c\u5b89\u88c5\uff0c\u5982\u56fe\uff1a 2\u3001\u5b89\u88c5Go\u8bed [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":6414,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[111],"tags":[],"class_list":["post-6405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/6405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=6405"}],"version-history":[{"count":7,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/6405\/revisions"}],"predecessor-version":[{"id":16084,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/6405\/revisions\/16084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/6414"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=6405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=6405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=6405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}