Draft: First draft of new fiber based server #7
1 changed files with 3 additions and 3 deletions
|
@ -24,11 +24,11 @@ func Load(workingDir, configFile string) (cfg *Components, err error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
loader.AddConfigPath(home)
|
loader.AddConfigPath(home)
|
||||||
}
|
|
||||||
|
|
||||||
loader.AddConfigPath(workingDir)
|
loader.AddConfigPath(workingDir)
|
||||||
loader.SetConfigName("goveal")
|
loader.SetConfigName("goveal")
|
||||||
loader.SetConfigType("yaml")
|
loader.SetConfigType("yaml")
|
||||||
|
}
|
||||||
|
|
||||||
loader.AutomaticEnv()
|
loader.AutomaticEnv()
|
||||||
|
|
||||||
if err = loader.ReadInConfig(); err == nil {
|
if err = loader.ReadInConfig(); err == nil {
|
||||||
|
|
Loading…
Reference in a new issue