mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-22 19:49:25 +00:00
17 lines
271 B
Go
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()
|
|
}
|