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.
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 😄