/go-clean-archi

Clean architectural pattern implementation for go lang

Primary LanguageGo

README

This reository is implemantation of clean code architecture

What is this repository for?

  • This reository is implemantation of clean code architecture using golang . Here i follow Domain driven design. To make the application loosely coupled and unit testable i ustilize interfaces and implement IOC container.

As golang Compile-time Dependency Injection wire(https://github.com/google/wire) is still in alpha, so i write my own injection container. You can found the implementation in injectioncontainer.go file.

How do I get set up?

It has simple dependencies:

As i use dep for dependancy management to install all dependancies navigate to code folder and run

dep ensure 

It will install all require dependancies.

To run the application

go build

Then

./go-clean-archi

Contribution guidelines

Create a new branch from main branch. Then provide pull request to review and merge code.