mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 12:09:47 +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()
|
|
}
|