Structuring a Go Project with Clean Architecture — A Practical Example

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. ticket-reservation

    A simple ticket reservation system for managing concert tickets, including seat reservations and payment processing. (by kittipat1413)

    In this post, I’d like to share how I’ve applied Clean Architecture principles in a simple Go project called 🎟️ Ticket Reservation System. It’s a small concert ticket booking service, and while not exhaustive, it demonstrates one possible way to organize code using Clean Architecture. The project includes features like domain-driven modeling, repository interfaces, CLI tooling, Swagger documentation, and modular routing.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. jet

    Type safe SQL builder with code generation and automatic query result data mapping

    4. Infrastructure Layer — internal/infra/ This layer implements database logic using go-jet and sqlx. It satisfies the interfaces defined in the domain layer.

  4. sqlx

    general purpose extensions to golang's database/sql

    4. Infrastructure Layer — internal/infra/ This layer implements database logic using go-jet and sqlx. It satisfies the interfaces defined in the domain layer.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Looking for open source project to learn from

    6 projects | /r/golang | 8 Apr 2022
  • [Question] Working with databases/storing data in Go applications.

    4 projects | /r/golang | 29 Jan 2022
  • Using pgx and squirrel with PostgreSQL

    3 projects | /r/golang | 26 Feb 2021
  • Go Tool: (exploring) sqlc (Part 1)

    8 projects | dev.to | 15 Feb 2021
  • Why I Built a Go SQL Helper

    3 projects | dev.to | 12 Jun 2026