I\'m having a quite frustrating problem with the GOPATH, which, despite being set in .profile, is not appearing when invoking go env,
GOPATH and workspaces
$ mkdir -p $HOME/dev/go/src
$ mkdir -p $HOME/dev/go/bin
In $HOME/.profile:
export GOPATH=$HOME/dev/go:
export PATH=$PATH:$HOME/dev/go/bin
Then reboot or log out and log in.
As soon as you have logged in, before anything else, run:
$ env | grep -i '^GO'
GOPATH=/home/me/dev/go
$ cat $HOME/.profile
What output do you get?