Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
MIT License
2.07k stars 141 forks source link

Merged near identical templates #187

Closed MitchellBerend closed 3 months ago

MitchellBerend commented 3 months ago

Resolves #181

This pr removes all the dbRoutes templates since they are near identical to their non db counter parts. To keep the db functionality, a snippet is added to the original template files.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Checklist

MitchellBerend commented 3 months ago

@Ujstor I found out the server templates are also very similar. Even though they are simple changes, if I also merge those in this pr it will be quite a lot of changes in 1 pr.

Should I merge those as well, or leave that for a second pr?

Edit: Nvm, during testing I found out those have to also be merged for this change to be functioning properly.

Ujstor commented 3 months ago

If it is necessary, also include server temp in this PR. btw, nice refactor.