I have set following path on my ~/.bashrc
file
export GOPATH=/usr/lib/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
But when i installed ATOM IDE and i tried to install go-plus
package, it tired to download something at the end and i got the error that
package github.com/nsf/gocode: cannot download, $GOPATH not set. For more details see: go help gopath
What I am doing wrong ? Here is my ubunt information as well.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
P.S
I have already tried setting my
export GOPATH=/home/<username/go
export PATH=$PATH:$GOPATH/bin