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 dep
Run local deployment
make run
Run local unit test
make test
Run 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