Documentation ¶ Index ¶ func GetConfig() *viper.Viper func SetStruct(S interface{}, Tags ...string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetConfig ¶ added in v0.9.0 func GetConfig() *viper.Viper func SetStruct ¶ added in v0.9.0 func SetStruct(S interface{}, Tags ...string) error Set a struct for viper `Tags` represent the fields when setting config, and the fields in Tags shall prevail. `Tags` that appear first have higher priority. Types ¶ This section is empty. Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.