Curriculum Idioms & ecosystem Project layout exercise 1 · mcq
Project layout
Pick the conventional directory path for the entry-point
source file of a binary called serverd inside a Go
module.
TypeScript: src/index.ts or bin/serverd.ts —
convention varies by tool. Go's cmd/ directory
convention is widely followed (though not enforced).
TypeScript reference
About this theme
cmd/<binary-name>/main.go per binary; internal/... for packages that should not be importable by other modules. Outside those two conventions, layout is up to you. The golang-standards/project-layout repo is *not* official and over-prescribes — start small.