This is an example of implementation clean code architecture in Go with gin-gonic framework with some unit testing on the project.
Run dependency manager
make depRun local deployment
make runRun local unit test
make testRun build project
make build| Library | Usage |
|---|---|
| gin | Base framework |
| gorm | ORM library |
| postgres | Database |
| jwt-go | JWT authorization |
| go-sqlmock | Database mock |
| logrus | Logger library |
| viper | Config library |
And others library are listed on go.mod file