golang-project-layout
samber/cc-skills-golang
This guide serves as a comprehensive blueprint for architecting and structuring Golang projects. It covers best practices for defining project types (CLI, Service, Library, Monorepo), adhering to 12-Factor App principles, standardizing module naming conventions, and establishing optimal directory layouts (cmd/, internal/, pkg/). Use it when starting a new Go application or refactoring a complex codebase to ensure maintainability and scalability.