Closed ITler closed 2 years ago
Hello. First thank you for providing this library. It is very helpful.
I would like to propose the following: To reduce repitition in code when it comes to mapping field names maybe changing from
`mapstructure: "alternativeFieldname"`
to
`json: "alternativeFieldname"`
would be useful, as I think the json: directive would be used and defined on the struct anyways. Kind of relates to: #256
json:
What do you think?
You can set the tag name to use in your DecoderConfig if you want something like this. For example, I reuse yaml-tags. Isn't this sufficient?
DecoderConfig
yaml
Argh, I am blind. Of cause this is sufficient. Thanks for replying.
Hello. First thank you for providing this library. It is very helpful.
I would like to propose the following: To reduce repitition in code when it comes to mapping field names maybe changing from
to
would be useful, as I think the
json:
directive would be used and defined on the struct anyways. Kind of relates to: #256What do you think?