Code for the Let’s Go book by Alex Edwards.
Project structure loosely based on:
Important things so far:
- Handlers are receiver functions of the
applicationstruct - Routes are receiver functions of the
applicationstruct - Snippets are receiver functions of the
SnippetModelstruct- This essentially means that the DB connection is shared between all the query functions