xmr-remote-nodes/internal/config/config.go
ditatompel e9cacb478c
Some checks failed
Build / build (push) Has been cancelled
Test / lint (push) Has been cancelled
feat: Allow user to specify custom .env location
This feature can also be useful for running tests in CI.
2024-06-18 04:23:08 +07:00

17 lines
271 B
Go

package config
import (
"log"
"github.com/joho/godotenv"
)
// LoadAllConfigs set various configs
func LoadAll(envFile string) {
if err := godotenv.Load(envFile); err != nil {
log.Fatalf("can't load environment file. error: %v", err)
}
LoadApp()
LoadDBCfg()
}