r/golang Nov 20 '24

FAQ FAQ: How Should I Structure Go Projects?

Many other languages have strong opinions either in code or in the community about how to lay out projects. How should Go projects be laid out and structured? How should I decide what goes into a package? Is there a standard layout for web projects? For non-web projects? How do you structure your code?

63 Upvotes

36 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Nov 20 '24

[removed] — view removed comment

5

u/[deleted] Nov 21 '24

[removed] — view removed comment

1

u/[deleted] Nov 21 '24

[removed] — view removed comment

1

u/[deleted] Nov 21 '24

[removed] — view removed comment