项目作者: hdlopez

项目描述 :
This is my purpose of how to structure a web application in golang following the clean architecture principles
高级语言: Go
项目地址: git://github.com/hdlopez/clean-architecture-golang.git
创建时间: 2020-10-25T17:33:07Z
项目社区:https://github.com/hdlopez/clean-architecture-golang

开源协议:MIT License

下载


Go

Clean Architecture in Go

This is my humble version of how to structure a GO application.

Link to my article (currently only in spanish) about “How to structure a Go Application”.

In order to demonstrate my idea with a simple example application, I created this API which handles messages.

Frameworks

The example uses the following frameworks:

Run

Clone the repository and execute the following command on the root folder

  1. go run main.go

Test

  1. go test ./...

Backlog

This is a work in progress. There’s still a lot of work to do. PRs are welcome :)

  • Add (a LOT) of unit tests
  • Use Context type to pass parameters across different layers
  • Add an example of database handler module