Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CfgType = "yaml" CfgName = "config" CfgDir = "" CfgPath = filepath.Join("configs", "config", "config.yaml") )
Functions ¶
func UnmarshalKey ¶ added in v0.2.0
func UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
Types ¶
type Config ¶
type Config interface {
UnmarshalKey(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error
Decode(name string, cfgMap interface{}) error
Get(key string) interface{}
Set(string, interface{})
GetString(key string) string
GetMap(keys ...string) CfgMap
AllKeys() []string
MergeConfig(in io.Reader) error
All() map[string]interface{}
}
Click to show internal directories.
Click to hide internal directories.