feat:Extraction of configuration parameters
This commit is contained in:
1 parent
bfbc5081ea
commit
8a1614f64d
34 files changed
+99
-79
No files matched your search
@@ -12,7 +12,7 @@ func InitDatabase(cfg *viper.Viper) *Database {
|
||||
|
||||
db := &Database{
|
||||
Driver: cfg.GetString("driver"),
|
||||
Source: cfg.GetString("dbname"),
|
||||
Source: cfg.GetString("source"),
|
||||
DBName: cfg.GetString("dbname"),
|
||||
}
|
||||
return db
|
||||
|
||||
Reference in new issue
Block a user