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.
|
|
This makes templating easier and allows to use partial templates.
|
|
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.
|
|
|
|
|
|
|
|
Passing the config completly or just partial around via function
arguments creates a lot of noice and does not have benefits.
The only downside is that it is possible to write the config after
initialization but it is realistic that this can be avoided.
|
|
|
|
This project is not so big that it needs multiple packages.
|
|
This repository is just about the generic source code. Adapting it to a
certain Linux distribution which might be systemd based is up to a
packaging repository.
|
|
|