https://github.com/elvis-chuks/go-clean-arch
Clean arch implementation in Golang
https://github.com/elvis-chuks/go-clean-arch
backend clean-arch golang golang-examples
Last synced: 5 months ago
JSON representation
Clean arch implementation in Golang
- Host: GitHub
- URL: https://github.com/elvis-chuks/go-clean-arch
- Owner: elvis-chuks
- License: mit
- Created: 2022-11-24T19:36:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T20:07:02.000Z (over 3 years ago)
- Last Synced: 2024-06-20T06:22:04.497Z (about 2 years ago)
- Topics: backend, clean-arch, golang, golang-examples
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Clean Arch
## Description
This monorepo implements Clean Architecture in Go (Golang).
Rule of Clean Architecture by Uncle Bob
* Independent of Frameworks. The architecture does not depend on the existence of some library of feature laden software. This allows us to use such frameworks as tools, rather than having to cram our system into their limited constraints.
* Testable. The business rules can be tested without the UI, Database, Web Server, or any other external element.
* Independent of Database. We can swap out Mongodb, for Rocksdb, Dynamodb, CouchDB, or something else. Our business rules are not bound to the database.
More [here](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html)
This repo has 4 layers
* Domain (Models, entities)
* Repository
* Usecase
* Delivery (controller/delivery)

The original explanation about this repos structure can be read from this medium's post : [https://medium.com/@imantumorang/golang-clean-archithecture-efd6d7c43047](https://medium.com/@imantumorang/golang-clean-archithecture-efd6d7c43047).
It may be different already, but the concept is still the same in application level