-
I am trying to have a nice YAML structure:
but on the command line I'd prefer to just say
What seems to happen is that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I figured out how I'm supposed to do this. What I did was added a manual binding like this:
I am not sure if I'm reading this correctly but it looks like the alias mechanism is only when you're looking things up for example using |
Beta Was this translation helpful? Give feedback.
I think I figured out how I'm supposed to do this. What I did was added a manual binding like this:
I am not sure if I'm reading this correctly but it looks like the alias mechanism is only when you're looking things up for example using
viper.GetString()
... in other words the aliases are applied at read time, not write time.