diff --git a/myconf/conf.go b/myconf/conf.go index 1e81cbd..3f96ebe 100644 --- a/myconf/conf.go +++ b/myconf/conf.go @@ -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()