Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CfgDir string CfgPath string )
Functions ¶
Types ¶
type Config ¶
type Config interface { UnmarshalKey(key string, rawVal interface{}, opts ...DecoderOption) error Unmarshal(rawVal interface{}, opts ...DecoderOption) error // DecodeComponent decode component config to map[string]*struct DecodeComponent(name string, cfgMap interface{}) error Get(key string) interface{} Set(string, interface{}) GetString(key string) string AllKeys() []string All() map[string]interface{} }
type DecoderOption ¶
type DecoderOption = viper.DecoderConfigOption
Click to show internal directories.
Click to hide internal directories.