# bxcodec/go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture

Repository: https://github.com/bxcodec/go-clean-arch
Canonical: https://ross.abutalabs.com/products/go-clean-arch
Language: Go
License: MIT
License Family: permissive
Topics: architecture, golang, sql, database, article, mysql, clean-architecture, go
Last push: 2024-04-24T04:15:38+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3373, "days_push": 861, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10151, forks 1315 (observed 2026-08-28T04:10:39.695865+00:00)

## What it is
A well-known example implementation of Uncle Bob's Clean Architecture in Go, structured into models, repository, usecase, and delivery layers. It serves as a reference template and tutorial for organizing Go backend projects, with multiple versioned branches showing architectural evolution.

## Use cases
- structure a golang rest api with clean architecture
- learn how to layer repository usecase and delivery in go
- find a clean architecture project template for go
- see how to keep business logic independent of frameworks and database
- example of mysql repository layer in golang
- compare clean architecture versions for go projects

## When to choose
- starting a new Go backend project and wanting a proven layered structure
- learning Clean Architecture principles with concrete Go code
- looking for a reference to justify package boundaries in code review

## When to avoid
- you need a production framework with batteries included rather than an example skeleton
- your project is small enough that layered architecture adds unnecessary overhead
- you need a non-SQL or non-HTTP stack without adapting the example

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, database, developer-tools
- domain: web-development, backend, developer-tools, tutorials
- platform: go, cross-platform
- tags: clean-architecture, golang, project-template, example-project, layered-architecture, mysql, uncle-bob

## Member repositories
- bxcodec/go-clean-arch (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.695865+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:40.855088+00:00, confidence not recorded.
  - readme: https://github.com/bxcodec/go-clean-arch (fetched 2026-08-28T04:10:39.695865+00:00, sha 5aac7af55b08)
- Data as of 2026-08-30T08:39:29.467469+00:00.
