{"id":2271,"date":"2024-01-13T13:36:07","date_gmt":"2024-01-13T05:36:07","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2271"},"modified":"2024-01-13T13:36:07","modified_gmt":"2024-01-13T05:36:07","slug":"the-selected-directory-is-not-a-valid-home-for-go-sdk","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2024\/01\/13\/the-selected-directory-is-not-a-valid-home-for-go-sdk\/","title":{"rendered":"The selected directory is not a valid home for Go SDK"},"content":{"rendered":"<h2>\u95ee\u9898\u63cf\u8ff0<\/h2>\n<p>\u5728IDEA\u914d\u7f6e<code>GOROOT<\/code>\u672c\u5730\u8def\u5f84 <code>Languages &amp; Frameworks<\/code> -&gt; <code>Go<\/code> -&gt; <code>GOROOT<\/code> \u65f6\u62a5\u9519\uff1a<\/p>\n<pre><code>The selected directory is not a valid home for Go SDK<\/code><\/pre>\n<p>\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u7684\u539f\u56e0\u662f idea \u7684 Go-plugin \u63d2\u4ef6\uff0c\u548c Go \u7684SDK\u7248\u672c\u4e0d\u5339\u914d<\/p>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>\u5728 golang \u5b89\u88c5\u8def\u5f84\u4e0b\u5bfb\u627e\uff1a<code>go1.20.12\\src\\runtime\\internal\\sys\\zversion.go<\/code>\u6587\u4ef6<\/p>\n<p>\u589e\u52a0\u4e00\u4e2a\u81ea\u5df1\u7684\u7248\u672c\uff0c\u5728<code>zversion.go<\/code>\u6587\u4ef6\u4e2d\u8ffd\u52a0\u5982\u4e0b\u884c\uff08\u4f60\u7684\u7248\u672c\u53f7\uff09\u5e76\u4fdd\u5b58<\/p>\n<pre><code class=\"language-go\">const TheVersion = <code>go1.20.12<\/code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0 \u5728IDEA\u914d\u7f6eGOROOT\u672c\u5730\u8def\u5f84 Languages &amp; Frameworks -&gt; [&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-2271","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\/2271","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=2271"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2271\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}