Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromViper ¶
func GetConfigFromViper(config interface{}) error
GetConfigFromViper is used to marshall viper's settings into a given struct. Instantiate your config struct and pass in a pointer to it. Any validation errors will be returned. To ensure accurate marshalling, make sure your struct's json tags match your cobra flag names / viper settings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.