~/src/go-statsd-client> echo $GOPATH /Users/me/gopath ~/src/go-statsd-client> echo $GOROOT /usr/local/Cellar/go/1.1.1\\ ~/src/go-statsd-client> go install g
I had this problem on Windows.
My problem was that my %GOPATH% environment variable was set to
%GOPATH%
C:\Users\john\src\goworkspace
instead of
C:\Users\john\src\goworkspace\
Adding the missing trailing slash at the end fixed it for me.