Option for default prefix for nested structs
DeadlySurgeon opened this issue · 2 comments
DeadlySurgeon commented
It would be nice if there was an option for assuming a default prefix for nested structs. Our usecase has every nested struct having a prefix, coming from https://github.com/kelseyhightower/envconfig, so having to amend everything with envPrefix:"<Name>_"
is a bit bloated.
caarlos0 commented
rather keep the library API simpler, a little repetition in this case seem harmless enough.
"Yes is forever", so, I rather not do this - or at least not right now.
Thanks for the suggestion either way.
DeadlySurgeon commented
a little repetition in this case seem harmless enough
Every single configuration we have, basically has it. In most projects, it tends to be a lot. In our case, +200 lines.