|
@@ -68,6 +68,10 @@ func (c *config) Set(module, key string, value any) {
|
|
|
c.Viper.Set(module+"."+key, value)
|
|
|
}
|
|
|
|
|
|
+func (c *config) Unmarshal(module, key string, value any) error {
|
|
|
+ return c.Viper.UnmarshalKey(module+"."+key, value)
|
|
|
+}
|
|
|
+
|
|
|
func (c *config) ReadConfigAndFileExist() (bool, error) {
|
|
|
if err := c.Viper.ReadInConfig(); err != nil {
|
|
|
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|