mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
18 lines
288 B
Go
18 lines
288 B
Go
package config
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
// LoadAllConfigs set various configs
|
|
func LoadAll(envFile string) {
|
|
err := godotenv.Load(envFile)
|
|
if err != nil {
|
|
log.Fatalf("can't load .env file. error: %v", err)
|
|
}
|
|
|
|
LoadApp()
|
|
LoadDBCfg()
|
|
}
|