#1818th of 45 in Backend and cloud templates
go-clean-template
Clean Architecture Go microservice template with REST, gRPC, RabbitMQ and NATS
- Stars
- 7.7k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Go
7,466 on 21 Apr 20267,722 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A Go service template that shows how to layer a microservice with Clean Architecture and constructor-based dependency injection. It ships three demo domains (user auth with JWT, tasks, translation) exposed over REST (Fiber), gRPC, AMQP RPC and NATS RPC, backed by Postgres. Includes Swagger, Prometheus metrics, OpenTelemetry tracing to Jaeger, migrations and integration tests.
Who it is for: Go developers structuring a multi-transport backend service
Strengths
- Same three domains implemented across REST, gRPC, AMQP RPC and NATS RPC
- OpenTelemetry traces span all four transports, with Jaeger in the compose stack
- Interface-based DI makes use cases mockable with go.uber.org/mock
- Compose targets for local dev, CI integration tests and full stack with proxy
Weaknesses
- Local run needs Postgres, RabbitMQ and NATS even if only REST is wanted
- Translation domain depends on an external translation API
- No LLM or model integration; it is a generic Go backend template
- Demo credentials in compose and README must be replaced before real use
What it needs
- Go
- Needs PostgreSQL, RabbitMQ, NATS, Jaeger (optional)
- GitHub template
- Docker
- env example file
Quick answers
Is go-clean-template open source?
Yes. Its code is on GitHub under the MIT license.
Can you run go-clean-template with Docker?
Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.
Also in Backend and cloud templates
See all 45| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 88 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 86 out of 100 |