Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CfgType = "yaml" CfgName = "config" CfgDir = env.Get("cfg_dir", "app_cfg_dir") CfgPath = filepath.Join("configs", "config", "config.yaml") )
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.2.2
type Config ¶
type Config interface {
LoadPath(path string)
LoadEnv(names ...string)
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.