# khannedy/golang-clean-architecture

Go-Lang Clean Architecture

Repository: https://github.com/khannedy/golang-clean-architecture
Canonical: https://ross.abutalabs.com/products/golang-clean-architecture
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2025-08-25T14:29:11+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 38, release rhythm 35, longevity 100
- inputs: {"age_days": 2135, "days_push": 373, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1092, forks 278 (observed 2026-08-28T04:03:33.184612+00:00)

## What it is
A Go project template implementing Clean Architecture with layered delivery, use case, repository, and gateway components. It ships with a Fiber HTTP server, GORM/MySQL persistence, Kafka worker, migrations, and configuration out of the box.

## Use cases
- start a new Go backend project with clean architecture
- golang rest api project template with layered structure
- learn how to structure a Go web service with use cases and repositories
- boilerplate for Go API with MySQL and Kafka
- example of golang clean architecture with fiber and gorm
- template for separating business logic from delivery and database layers

## When to choose
- you want a proven, opinionated starting point for a Go backend following clean architecture
- your stack matches Fiber, GORM, MySQL, and Kafka
- you want migrations, validation, logging, and config wired up from day one

## When to avoid
- you prefer a different architecture style like hexagonal or DDD with your own conventions
- you use a different stack such as Gin, Echo, PostgreSQL, or gRPC-first services
- you need a production service rather than a template you must adapt and harden

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, orm, database, logging, middleware, routing, templating
- domain: backend, web-development, developer-tools, apis
- platform: go, windows, self-hosted
- tags: clean-architecture, go-fiber, gorm, kafka, project-template, layered-architecture, mysql, viper, golang-migrate, sarama, boilerplate, linux, macos, docker

## Member repositories
- khannedy/golang-clean-architecture (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:33.184612+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-30T08:33:35.703655+00:00, confidence not recorded.
  - readme: https://github.com/khannedy/golang-clean-architecture (fetched 2026-08-28T04:03:33.184612+00:00, sha 655889e070f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
