It is recommended to utilize bashrc that may be opened by issuing the below command in the terminal. in this post We'll established our GOPATH to /house//GoProjects. This workspace will host pkg, src and bin directory. http://golangtutorial.com/create-the-gopath-environment-variable-in-windows/