Merge branch 'main' of ssh://git.makemake.in:5566/kzkzzzz/mycommon

main
kzkzzzz 2025-12-11 22:15:49 +08:00
commit 22ba1c8046
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)
}
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 {
c.RLock()
defer c.RUnLock()