Go Docs


Q: What does the directory tree of a typical Go project look like?

In the past, according to an official tutorial (now removed), all Go source code, including those of your projects and those of the dependencies, should be placed under $GOPATH/src/.

The convention for newer Go versions is to use go.mod and perhaps also go.work.