Age | Commit message (Collapse) | Author |
|
Using a database is way more complex (see the commit statistics of this
commit) than using files to store recipe data. Also administration and
usage is simpler.
|
|
Docstrings for functions are a good thing. But the inside of a function
should be written in a way that is self-explaining. Thus inline comments
are just extra stuff to maintain and read.
|
|
This auto-applies the recommended Go codestyle.
|
|
This has nothing to do with the database. Because the db is now a global
pointer the shutdown code can live in main.go.
|
|
Logging during a request is at the moment not really needed. Printing
the config to the log was a stupid idea too.
|
|
Passing the database pointer around is a lot of text and has no benefit.
|
|
|
|
This project is not so big that it needs multiple packages.
|