Go workspaces

Go workspaces allow managing multiple modules from a single directory using a go.work file for unified builds and tests.

Go workspaces let you manage multiple modules from a single directory using a go.work file. Run go work init to create the file, then go work use ./path/to/module to add modules. Once configured, run go build, go test, or go run in the workspace root to operate on all included modules simultaneously.

go work init
go work use ./module-a
go work use ./module-b
go build ./...