Hi Paraiso,
I just did some research about database access and found this reddit linkĀ
https://www.reddit.com/r/golang/comments/2t52u7/how_do_you_write_functions_that_access_database/
I thought, there might be some well known pattern to access database and widely
popular in go community.
Anyway,
I find your question strange because, unless you have a specific
architectural problem , which you don't, AFAIK, you shouldn't try to force
patterns in your code. Write code that is testable then refactor if needed.
Don't try to force a specific pattern just because "patterns".
Now if you are