How to unmarshal config in my case #1410
Unanswered
KabudoWiseMan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I believe this should do the trick: type HttpTracingConfig struct {
*HttpReporterConfig `validate:"required" mapstructure:",squash"`
...
} Please check the mapstructure documentation for details. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, could you elaborate on how to unmarshal config in such case.
I have a config structure like so:
And config file:
So I try to load config:
But unmarshaling doesn't work in such case. Why doesn't it recognise that key "tracing.url" should be placed as
And how do I fix that behaviour?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions