Setup:
Have a look at my configuration:
$ echo $GOPATH && ls -r $GOPATH /home/cyrus/.go src pkg bin $ echo $GOROOT &&
When you run go env, you should be able to see if your GOPATH has been set. On my case though, this command solves it when I had it run on my terminal.
export GOPATH=/usr/local/bin