|
@@ -42,7 +42,7 @@ func Load(sources []Source, bc any) error {
|
|
|
c := config.New(
|
|
c := config.New(
|
|
|
config.WithSource(configSources...),
|
|
config.WithSource(configSources...),
|
|
|
config.WithDecoder(func(kv *config.KeyValue, v map[string]interface{}) error {
|
|
config.WithDecoder(func(kv *config.KeyValue, v map[string]interface{}) error {
|
|
|
-
|
|
|
|
|
|
|
+ fmt.Println(string(kv.Value))
|
|
|
ok := sourceMap.Has(kv.Key)
|
|
ok := sourceMap.Has(kv.Key)
|
|
|
if !ok {
|
|
if !ok {
|
|
|
return errors.New("unknown config key")
|
|
return errors.New("unknown config key")
|