I\'m install the go with the go1.3.1.windows-amd64.msi, after installation GOROOT is default setting, I found the D:\\Programs\\Go\\bin in the PATH,then I create a GOPATH envi
I faced with the same problem. However i set everything as it was said in the tutorial but forgot to restart cmd
. So the steps were:
Go
distribution(the GOROOT
variable was set automatically)bin
, src
and pkg
->
All Control Panel Items ->
System ->
Advansed System Settings ->
tab Advanced ->
Environment Variables ->
add new system variable by clicking New on System varaibles ->
Variable name = GOPATH
, Variable value = Your:\directory\that\you\created
cmd
or Bash
(that's important) and you have your GOPATH
set. To be sure run go env
and you will see your value.