project-layout

Standard Go Project Layout

20 articles 55.5k View on GitHub ↗
20 articles
Go Project Structure for Microservices Architecture: The Complete golang-standards/project-layout Guide

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.

tutorial
Mar 6, 2026
When to Use the `/examples` Directory in Go Projects: A Complete Guide

Learn when to use the /examples directory in Go projects for runnable demonstrations, educational content, and integration tests. Understand this project layout convention.

best-practices
Mar 6, 2026
How to Organize Assets and Static Files in Go Web Applications

Organize Go web application assets and static files effectively using the golang-standards project layout convention. Streamline your project structure for better maintainability and clarity.

how-to-guide
Mar 6, 2026
Go Project Layout Patterns Used by Popular Go Projects: Standard Structure Explained

Explore Go project layout patterns used by popular projects like Kubernetes. Learn the standard structure for scalable, compiler-enforced architectures with /cmd, /internal, and /pkg.

best-practices
Mar 6, 2026
How to Structure Multi-Binary Go Projects: The Standard Layout Explained

Structure multi-binary Go projects effectively using the standard layout. Organize code in cmd internal and pkg directories for maintainable entry points.

architecture
Mar 6, 2026
Difference Between /build, /deployments, and /scripts in the Go Project Layout

Understand 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.

deep-dive
Mar 6, 2026
How to Organize Initialization and System Config Files in Go Projects

Organize Go project initialization and system config files effectively. Use init/ for scripts and configs/ for templates to separate deployment from runtime settings.

best-practices
Mar 6, 2026
Go Modules and Dependency Management Best Practices for Production Projects

Master Go Modules and dependency management for production. Learn best practices for minimal go.mod, committing go.sum, and using vendor directories for reproducible builds.

best-practices
Mar 6, 2026
How to Structure Go Projects with Docker and Kubernetes

Structure Go projects effectively with Docker and Kubernetes. Learn to organize your code using golang-standards project layout for cleaner deployments and orchestration.

how-to-guide
Mar 6, 2026
When to Avoid the `/src` Directory in Go Projects: Best Practices Explained

Learn why you should avoid the top-level src directory in Go projects. Discover best practices for cleaner, more efficient Go module organization.

best-practices
Mar 6, 2026
How to Organize Configuration Files in Go Projects: The /configs Directory Standard

Organize 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
Mar 6, 2026
Best Practices for Go Makefile and Build Scripts: golang-standards/project-layout Guide

Master Go Makefile and build script best practices with the golang-standards/project-layout guide. Ensure reproducible builds for local dev and CI.

best-practices
Mar 6, 2026

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:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →