回答編集履歴
6
誤字修正
answer
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
> C:\Program Files\Go\bin\go.exe\pkg\sumdb\sum.golang.org
|
2
2
|
|
3
|
-
実行ファイル名の後ろにディレクトリが指定されている
|
3
|
+
実行ファイル名の後ろにディレクトリが指定されている為 `GOPATH` が誤っている気がします。
|
4
4
|
下記に変更して試してもらえますか?
|
5
5
|
|
6
6
|
変更前)C:\Program Files\Go
|
5
説明を改善
answer
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
> C:\Program Files\Go\bin\go.exe\pkg\sumdb\sum.golang.org
|
2
2
|
|
3
|
+
実行ファイル名の後ろにディレクトリが指定されているた為 `GOPATH` が誤っている気がします。
|
3
|
-
|
4
|
+
下記に変更して試してもらえますか?
|
4
5
|
|
5
6
|
変更前)C:\Program Files\Go
|
6
7
|
変更後)%USERPROFILE%\go
|
4
参考URLを追加
answer
CHANGED
@@ -14,4 +14,7 @@
|
|
14
14
|
■ WindowsのVisual Studio CodeでGo言語の開発環境を作る(2017年7月版)
|
15
15
|
[https://blog.shibata.tech/entry/2017/07/20/211442](https://blog.shibata.tech/entry/2017/07/20/211442)
|
16
16
|
|
17
|
-
> 今回GOPATHは%USERPROFILE%\Goにし、%GOPATH%\binに対してPATHも通しておきます。
|
17
|
+
> 今回GOPATHは%USERPROFILE%\Goにし、%GOPATH%\binに対してPATHも通しておきます。
|
18
|
+
|
19
|
+
■ Visual studio codeでGO言語を開発する環境を整える
|
20
|
+
[https://qiita.com/sasaron397/items/ec285b64607c1e7662e0](https://qiita.com/sasaron397/items/ec285b64607c1e7662e0)
|
3
説明を追加
answer
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
変更前)C:\Program Files\Go
|
6
6
|
変更後)%USERPROFILE%\go
|
7
7
|
|
8
|
+
※ もしかしたら、`setting.json` の `go.gopath` かもしれません。
|
9
|
+
|
8
10
|
<参考>
|
9
11
|
■ GOROOT および GOPATH
|
10
12
|
[https://pleiades.io/help/go/configuring-goroot-and-gopath.html](https://pleiades.io/help/go/configuring-goroot-and-gopath.html)
|
2
参考URLを追加
answer
CHANGED
@@ -7,4 +7,9 @@
|
|
7
7
|
|
8
8
|
<参考>
|
9
9
|
■ GOROOT および GOPATH
|
10
|
-
[https://pleiades.io/help/go/configuring-goroot-and-gopath.html](https://pleiades.io/help/go/configuring-goroot-and-gopath.html)
|
10
|
+
[https://pleiades.io/help/go/configuring-goroot-and-gopath.html](https://pleiades.io/help/go/configuring-goroot-and-gopath.html)
|
11
|
+
|
12
|
+
■ WindowsのVisual Studio CodeでGo言語の開発環境を作る(2017年7月版)
|
13
|
+
[https://blog.shibata.tech/entry/2017/07/20/211442](https://blog.shibata.tech/entry/2017/07/20/211442)
|
14
|
+
|
15
|
+
> 今回GOPATHは%USERPROFILE%\Goにし、%GOPATH%\binに対してPATHも通しておきます。
|
1
参考URLを追加
answer
CHANGED
@@ -3,4 +3,8 @@
|
|
3
3
|
`GOPATH` が誤っている気がします。下記に変更して試してもらえますか?
|
4
4
|
|
5
5
|
変更前)C:\Program Files\Go
|
6
|
-
変更後)%USERPROFILE%\go
|
6
|
+
変更後)%USERPROFILE%\go
|
7
|
+
|
8
|
+
<参考>
|
9
|
+
■ GOROOT および GOPATH
|
10
|
+
[https://pleiades.io/help/go/configuring-goroot-and-gopath.html](https://pleiades.io/help/go/configuring-goroot-and-gopath.html)
|