golang-standards/project-layout: Standard Go Project Layout
This is a basic layout for Go application projects. Note that it's basic in terms of content because it's focusing only on the general layout and not what you have inside. It's also basic because it's very high level and it doesn't go into great details in terms of how you can structure your project even further. For example, it doesn't try to cover the project structure you'd have with something like Clean Architecture. This is NOT an official standard defined by the core Go dev team. This is a set of common historical and emerging project layout patterns in the Go ecosystem. Some of these patterns are more popular than others. It also has a number of small enhancements along with several supporting directories common to any large enough real world application. Note that the core Go team provides a great set of general guidelines about structuring Go projects and what it means for your project when it's imported and when it's installed. See the Organizing a Go module page in the offic
Translations: 한국어 문서 简体中文 正體中文 简体中文 - ??? Français 日本語 Português Español Română Русский Türkçe Italiano Tiếng Việt Українська Indonesian हिन्दी فارسی Беларуская বাংলা Overview This is a basic layout for Go application projects. Note that it's basic in terms of content because it's focusing only on the general layout and not what you have inside. It's also basic because it's very high level and it doesn't go into great details in terms of how you can structure your project even further. For example, it doesn't try to cover the project structure you'd have with something…
saved by
related reading
- golang packaging, golang package structure, golang package naming convention, golang packages, go package structure, go packages tutorialgolinuxcloud.com
- Go at Google: Language Design in the Service of Software Engineering - The Go Programming Languagego.dev
- GitHub - kriasoft/Folder-Structure-Conventions: Folder / directory structure options and naming conventions for software projectsgithub.com
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Peter Bourgon · Go for Industrial Programmingpeter.bourgon.org
- Four Days of Go – Evan Millerevanmiller.org
- DESIGN.md Examples for AI Agents | Refero Stylesstyles.refero.design
- v0 by Vercel - Build Full-Stack Web Apps with AIv0.dev
- Go | CodeCraftersapp.codecrafters.io
- Impeccable: The missing upgrade to Anthropic's impeccable skillimpeccable.style
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com