aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 16:32:21 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 16:32:21 +0100
commit2bf38473893b4fcd86ce7c97c04846237bb8cce4 (patch)
treeb8a94fbe190b02e21fcc8d5d9634f140556aa475 /main.go
parentf84edf350c805d2e918441dc3a3102c951439fe1 (diff)
feat(config): create file if not found at path
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 4428edb..8f76d80 100644
--- a/main.go
+++ b/main.go
@@ -77,6 +77,10 @@ func main() {
if err != nil {
panic(err)
}
+ if cfg == nil {
+ println("config initialized")
+ return
+ }
db, err := cfg.Database.Connect()
if err != nil {