project-layout
Standard Go Project Layout
Master Go project structure for microservices with golang-standards/project-layout. Learn to organize cmd, internal, pkg, and deployments for maintainable Go applications. Enhance your architecture today.
When to Use the `/examples` Directory in Go Projects: A Complete GuideLearn when to use the /examples directory in Go projects for runnable demonstrations, educational content, and integration tests. Understand this project layout convention.
How to Organize Assets and Static Files in Go Web ApplicationsOrganize Go web application assets and static files effectively using the golang-standards project layout convention. Streamline your project structure for better maintainability and clarity.
Go Project Layout Patterns Used by Popular Go Projects: Standard Structure ExplainedExplore Go project layout patterns used by popular projects like Kubernetes. Learn the standard structure for scalable, compiler-enforced architectures with /cmd, /internal, and /pkg.
How to Structure Multi-Binary Go Projects: The Standard Layout ExplainedStructure multi-binary Go projects effectively using the standard layout. Organize code in cmd internal and pkg directories for maintainable entry points.
Difference Between /build, /deployments, and /scripts in the Go Project LayoutUnderstand the Go Project Layout: Learn the distinct roles of /build for distributable artifacts, /deployments for infrastructure-as-code, and /scripts for automation tools. Optimize your Go projects.
How to Organize Initialization and System Config Files in Go ProjectsOrganize Go project initialization and system config files effectively. Use init/ for scripts and configs/ for templates to separate deployment from runtime settings.
Go Modules and Dependency Management Best Practices for Production ProjectsMaster Go Modules and dependency management for production. Learn best practices for minimal go.mod, committing go.sum, and using vendor directories for reproducible builds.
How to Structure Go Projects with Docker and KubernetesStructure Go projects effectively with Docker and Kubernetes. Learn to organize your code using golang-standards project layout for cleaner deployments and orchestration.
When to Avoid the `/src` Directory in Go Projects: Best Practices ExplainedLearn why you should avoid the top-level src directory in Go projects. Discover best practices for cleaner, more efficient Go module organization.
How to Organize Configuration Files in Go Projects: The /configs Directory StandardOrganize Go project configuration files in a /configs directory. Separate operational assets from source code and enable environment-specific customization for better project management.
Best Practices for Go Makefile and Build Scripts: golang-standards/project-layout GuideMaster Go Makefile and build script best practices with the golang-standards/project-layout guide. Ensure reproducible builds for local dev and CI.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →