Documentation ¶
Overview ¶
Package yaml provides configuration loading from yaml file.
Load(config interface{}) gets struct.
// Config struct
type Config struct { Debug bool `yaml:"debug"` Timeout int `yaml:"timeout"` Name string `yaml:"name"` Data Data `yaml:"data"` }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
ConfigManager struct
func (*ConfigManager) Load ¶
func (cm *ConfigManager) Load(config interface{}) error
Load config from file
Click to show internal directories.
Click to hide internal directories.