mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix issue in resource searching for package gcfg
This commit is contained in:
@ -283,6 +283,10 @@ func (c *Config) FilePath(file ...string) (path string) {
|
||||
}
|
||||
})
|
||||
}
|
||||
// Already found?
|
||||
if path != "" {
|
||||
return
|
||||
}
|
||||
// Searching the file system.
|
||||
c.paths.RLockFunc(func(array []string) {
|
||||
for _, prefix := range array {
|
||||
|
||||
Reference in New Issue
Block a user