$GOROOT vs $GOPATH$GOROOT vs $GOPATH What is $GOROOT and $GOPATH? Answer $GOROOT is the root directory for standard library, including executables, source code and docs.$GOPATH is the directory for 3rd party packages.