From 7ac8fb1f14112550723ea7a083425d008ae718de Mon Sep 17 00:00:00 2001 From: lzf Date: Mon, 22 Sep 2025 12:22:32 +0800 Subject: [PATCH] update --- myconf/conf.go | 6 ++++++ 1 file changed, 6 insertions(+) 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()