A go.work file lists directories with use. While it is active, the go command builds the listed modules together and prefers the local copies over versions from a registry. It is meant for local development across modules, such as in a monorepo.