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