Setup:
Have a look at my configuration:
$ echo $GOPATH && ls -r $GOPATH /home/cyrus/.go src pkg bin $ echo $GOROOT &&
$GOPATH should be your current workspace , a folder where your project resides. or just cd ~/go and try to run those commands. Or you can just update $GOPATH in ~/.bashrc or ~/.bashrc_profile on ubuntu