Golang Package Conventions

This article was written in reference to the Go blog “Package Names” and several Go package convention resources. Key Tenets of Package Conventions Go’s package convention does not prescribe strict rules for directory structure or architecture instead, it presents the following key principles: 1. Organize Packages by Responsibility Avoid putting all types in a single package such as interfaces or models. Instead, organize packages based on the responsibility of their domain, following the “Organize by responsibility” principle. For example: ...

February 15, 2025 · 1 min · 205 words · In-Jun Hwang