xmr-remote-nodes/internal/config/config.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()
}