How to set Go environment variables globally : <p>when I declare my Go environment (namely GOPATH and GOROOT using simple export:</p>

<pre><code>export GOROOT=/usr/lib/go-1.9/
export GOPATH=/my/workspace/go
</code></pre>

<p>the current terminal recognizes the variables normally, but if I open another terminal window, these variables are not set and they need to be reconfigured from scratch. How can I change this variables to become permanent for the system (and all future terminals)? Is there some file I need to alter or should I execute a different command?</p>
