I am new to GO and getting an error when initializing GOPATH in windows. In my project folder is
C:\\Users\\kamin\\Documents\\pm-manager
and i am try to set
Ran into same problem. Fix is quite simple: just specify the drive in front of the entire path name. The issue occurred because I was following the instructions on Go "Getting Started" page and set GOPATH=%HOMEPATH%\Work
. The problem was that %HOMEPATH%
was defined as a relative path (\Users\MyName
), and so GOPATH
now pointed to \Users\MyName\Work
. All I needed to do was set GOPATH=c:\Users\MyName\Work
and the error goes away.