summaryrefslogtreecommitdiff
path: root/version.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-10-13 19:52:28 +0200
committerxengineering <me@xengineering.eu>2024-10-13 19:55:38 +0200
commit473052ed8f2c83052ed5b47a7f4cec68ac2621a6 (patch)
tree2d5da088c6879317734277350c873a258b4d1dac /version.go
parented19b82335345833c5b8f5446237d559a3657a35 (diff)
downloadceres-473052ed8f2c83052ed5b47a7f4cec68ac2621a6.tar
ceres-473052ed8f2c83052ed5b47a7f4cec68ac2621a6.tar.zst
ceres-473052ed8f2c83052ed5b47a7f4cec68ac2621a6.zip
model: Replace global db variable by custom type
Reducing global variables makes it easier to understand functions independently of the rest of the code. Adding the new model.DB type as a custom variant of the sql.DB type makes it possible to write methods for the database which makes the code way more readable.
Diffstat (limited to 'version.go')
0 files changed, 0 insertions, 0 deletions