Generated code placement
Author: jay-babuCreated Feb 14, 2026Updated May 7, 2026
Any recommendations for where to put all generated code. Using sqlc, oapi-codegen, and a few others. Any suggestions on where to put the generated code. Currently have a `generated` top level directory that is gitignored. In the CI, we just generate them again. Would it be better to have under `internal/generated`, unsure?
Source: golang-standards/project-layout