Skip to content

Instantly share code, notes, and snippets.

View bakare-dev's full-sized avatar
🎯
Focusing

Praise Bakare bakare-dev

🎯
Focusing
View GitHub Profile
@bakare-dev
bakare-dev / folder_structure.md
Created December 4, 2024 04:12 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    β”œβ”€β”€ cmd/
    β”‚   β”œβ”€β”€ your-app-name/
    β”‚   β”‚   β”œβ”€β”€ main.go         # Application entry point
    β”‚   β”‚   └── ...             # Other application-specific files