Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Connorig committed May 21, 2024
1 parent 9c779b4 commit 26b5fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/loader/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ func NewLoader() (o Loader) {
}

func (lo *loader) SetConfigFileSearcher(configName string, searchPath ...string) Loader {
// 设置读取文件名称
lo.vConf.SetConfigName(configName)

if len(searchPath) > 0 {

for _, p := range searchPath {
lo.vConf.AddConfigPath(p)
}
Expand Down

0 comments on commit 26b5fe1

Please sign in to comment.