Skip to content

Instantly share code, notes, and snippets.

View levpa's full-sized avatar
๐Ÿ 
Working from home

Lev Pasichnyi levpa

๐Ÿ 
Working from home
View GitHub Profile
@levpa
levpa / golang_folder_structure.md
Created April 27, 2026 07:34 — 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