manakuro / golang-clean-architecture

Go with Clean Architecture

Home Page:https://manakuro.medium.com/clean-architecture-with-go-bce409427d31

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should use internal folder instead pkg folder

glepnir opened this issue · comments

codes in pkg folder most use like a library .that othe people can import it from it . internal folder is Private application . also I agree with #7 . should use a database interface in repository . even you change database . just add a new database instance and implment the database interface method. anyway nice example.

ref https://github.com/golang-standards/project-layout

commented

Thanks for your suggestion. This project does not follow the https://github.com/golang-standards/project-layout, and just shows a simple example of Clean Architecture, so you can adapt the structure to suit your project.

But for a sample project which star keeps growing. I think you might need to change things up a bit where this project doesn't follow the design. So as not to cause trouble for other beginners. Your clean architecture post ranks high in google search and there are currently many starts :) feel free to close this issue 😄