Skip to content

MediumConceptDesign and production practices

How do you structure a Go project?

What a good answer covers

Keep packages small and cohesive, use cmd/ for binaries and internal/ for private code, name packages by purpose and avoid util-style names and cyclic dependencies.

More on Design and production practices

Flashcards for this topic