Replies: 1 comment
-
@treddy73 seems it's supported like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using a YAML file for my configuration and it has a structure like:
v.GetStringMap("db.dataSourceName")
returns a map that contains all of the child keys and it seems to work the way I want it to. I do this to help programmatically build the data source name.However, if I use environment variables like:
and I additionally configure Viper:
then
v.GetStringMap("db.dataSourceName")
returnsnil
.I am able to get the individual keys directly
v.GetString("db.dataSourceName.dbname")
for instance.Am I unable to grab a hierarchy of keys from an ENV configuration?
Beta Was this translation helpful? Give feedback.
All reactions