From 05e041cccf878af74cb6ad493f468d70067f6a05 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 4 Sep 2024 15:30:29 +0200 Subject: [PATCH] comments --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d88e2a6..1fa70e7 100644 --- a/main.go +++ b/main.go @@ -10,10 +10,13 @@ import ( const appname = "oc-catalog" func main() { - + // Init the oc-lib oclib.Init(appname) + + // Load the right config file o := oclib.GetConfLoader() + // feed the library with the loaded config, oclib.SetConfig( o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"), o.GetStringDefault("MONGO_DATABASE", "DC_myDC"),