Compare commits

..

2 Commits

Author SHA1 Message Date
lzf c27804489b Merge branch 'main' of ssh://git.makemake.in:5566/kzkzzzz/mycommon 2025-09-22 12:22:46 +08:00
lzf 7ac8fb1f14 update 2025-09-22 12:22:32 +08:00
1 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,12 @@ func (c *Config) Exists(key string) bool {
return c.kof.Exists(key) return c.kof.Exists(key)
} }
func (c *Config) GetSlices(key string) []*koanf.Koanf {
c.RLock()
defer c.RUnLock()
return c.kof.Slices(key)
}
func (c *Config) GetString(key string) string { func (c *Config) GetString(key string) string {
c.RLock() c.RLock()
defer c.RUnLock() defer c.RUnLock()