This commit is contained in:
John Guo
2024-12-09 23:43:29 +08:00
parent 5afc7f8aa1
commit efec967bec
10 changed files with 155 additions and 210 deletions

View File

@ -26,6 +26,6 @@ func Instance(name ...string) *Resource {
key = name[0]
}
return instances.GetOrSetFuncLock(key, func() interface{} {
return New()
return NewWithFS(defaultFS)
}).(*Resource)
}