Google News
logo
Golang - Interview Questions
What are GOROOT and GOPATH?
The GOPATH is an environment variable that is used for listing the places for looking for Go code. It specifies the directories that are outside GOROOT that have source code.

The GOROOT is an environment variable that specifies the directory where Golang is installed.
Advertisement