diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-13 23:25:26 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-13 23:25:26 -0500 |
| commit | fa63d31876bb522d6bd3dd2322c6f55f5c667a9c (patch) | |
| tree | 656eff7eba2f4de2bd35db222ee7fe9e75f7ce73 /conf/conf.go | |
| parent | 6cfc9a99c046f2bc52d3a976aff03fdcd4b94180 (diff) | |
add README.md, .gitignore
Diffstat (limited to 'conf/conf.go')
| -rw-r--r-- | conf/conf.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/conf.go b/conf/conf.go index b9dadcd..d135fcb 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -13,6 +13,7 @@ type Conf struct { } func Load() *Conf { + filepath := os.Getenv("NEWSSTAND_CONFIG_PATH") if filepath == "" { workingdir, err := os.Getwd() @@ -28,7 +29,7 @@ func Load() *Conf { if err != nil { log.Fatalln(err) } - log.Println(c) + log.Println(c.DbAdapter) return &c } |
