golang how to set GOPATH code example Example: how to change gopath Click to copyexport GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin