Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeConfig ¶
MergeConfig supplements the one-way binding provided by viper.BindPFlag(s) which only allows reading the bound config values via viper, e.g. GetString, but not through variables bound to configs by cobra, e.g. via StringVarP(). This allows reading of the bound values from the latter.
Origin (except for "stringSlice" case):
https://github.com/spf13/viper/issues/35#issuecomment-71908327 https://github.com/xh3b4sd
Changes:
- Add stringSlice support from https://github.com/spf13/viper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.