Closed BoskyWSMFN closed 1 week ago
it should be straightforward with one thing in mind: unpack the key if necessary https://github.com/nil-go/konf/blob/main/internal/maps/value.go#L15
It should support mapping to map: https://github.com/nil-go/konf/blob/main/internal/convert/converter.go#L84. I will double check later to see if it’s a bug.
Found it. It needs to add case reflect.Interface:
in convert:)
I encountered difficulties with converting configuration values into
amqp.Table
(map[string]any
). As far as I understand, converting values into a variable of typeinterface{}
is not supported, although implementing this would be quite straightforward. My question is: would I break anything globally if I add support for converting the configuration intointerface{}
? Of course, I will add the appropriate unit test.