how to change your gopath for windows code example Example: how to change gopath export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin