I set GOPATH as an environment variable on my Ubuntu VM as the following: export GOPATH="/go" and it works fine. 
The problem is, after I reboot my machine GOPATH is no longer an environment variable.
How to permanently set $PATH on Linux/Unix?, but in my case I need to set an environment variable and not path.
Why is that and how can I set it permanently?
 
     
    