go-clean-arch
go-clean-arch copied to clipboard
Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
_@bxcodec thanks for your amazing work! Go is just a hobby for me and I'm having fun. I'm learning a lot from your project._ I'm trying to understand if multi-tenancy...
Hello, Sorry for too many questions. I've been studying this architecture lately and came up across this question? Is it better to create a single Create() method in repository layer...
 Do the innermost entities in the neat architecture correspond to [Auther](https://github.com/bxcodec/go-clean-arch/blob/master/domain/author.go#L6) and [Article](https://github.com/bxcodec/go-clean-arch/blob/master/domain/article.go#L9) in the domain? Feel they are more like parameters.
Thanks a lot for the repo and it is really informative. However I have two small questions about pointer and value for usecase. 1. In this scenario, article usecase is...
Please review my pull request.
I see these codes in the main.go. > authorRepo := _authorRepo.NewMysqlAuthorRepository(dbConn) ar := _articleRepo.NewMysqlArticleRepository(dbConn) timeoutContext := time.Duration(viper.GetInt("context.timeout")) * time.Second au := _articleUcase.NewArticleUsecase(ar, authorRepo, timeoutContext) _articleHttpDeliver.NewArticleHttpHandler(e, au) I think if articleUcase...
1. Why domain model know about json (presentation level)? 2. Why domain model know about input validation? ``` type Article struct { ID int64 `json:"id"` Title string `json:"title" validate:"required"` Content...
Hello guys, Would you mind to give some example of basic auth or oauth 2.0 implementation in this architecture? Would really appreciate it 🙏🙏 Many thanks guys!
 In above picture, DB in the fourth layer, the most outside. But in thie project, Repository is the second inner layer. Why?