xmr-remote-nodes/internal/config/config.go

19 lines
288 B
Go
Raw Normal View History

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()
}