main
lzf 2025-09-22 12:22:32 +08:00
parent 898d7144f1
commit 7ac8fb1f14
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()