Clean Architecture with GO
Introducing Clean architecture with Go.
15 min readNov 7, 2019
Clean Architecture is designed to separate concerns by organizing code into several layers with a very explicit rule which enables us to create a testable and maintainable project. In this article, I’m going to walk you through how Clean Architecture works in Go.
Example repo
You can view the full codebase at:
Updated:
- Added transactions support
- Fixed duplicated repository
- Updated codebase structure
Pre-requisites
The target of readers in this post is who:
- Knows the basic idea of Clean Architecture
- Wants to implement Go with Clean Architecture
So if you are not familiar with Clean Architecture, you can read some recommended articles to catch up.