Documentation
¶
Index ¶
- Variables
- func Expand(original map[string]interface{}) (result map[string]interface{})
- func Flattening(val map[string]interface{}) map[string]interface{}
- func Get(key string, v interface{}) error
- func GetInt(key string) int
- func GetString(key string) string
- func Merge(override map[string]interface{}, source map[string]interface{})
- func Prefix() string
- func Register(src source.ConfigSource)
- func Reload() error
- func SetConfig(c *Config)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExpanderPattern = regexp.MustCompile("\\$\\{[^\\$]+\\}")
)
Functions ¶
func Merge ¶
the parameter override can be written by source if the override has the same key with source.
func Register ¶
func Register(src source.ConfigSource)
Types ¶
type Config ¶
func GetDefault ¶
func GetDefault() *Config
func NewDefault ¶
func NewDefault() *Config
func (*Config) Initialize ¶
func (*Config) ParseAndSetSourePath ¶
Click to show internal directories.
Click to hide internal directories.