func Load(s string) (*Config, error) {
	cfg := &Config{}
	// If the entire config body is empty the UnmarshalYAML method is
	// never called. We thus have to set the DefaultConfig at the entry
	// point as well.
	*cfg = DefaultConfig

	err := yaml.UnmarshalStrict([]byte(s), cfg)
	if err != nil {
		return nil, err
	}
	cfg.original = s
	return cfg, nil
}
func Load(s string) (*Config, error) {
	cfg := &Config{}
	
	
	
	*cfg = DefaultConfig

	err := yaml.UnmarshalStrict([]byte(s), cfg)
	if err != nil {
		return nil, err
	}
	cfg.original = s
	return cfg, nil
}
func Load ( s string ) ( * Config , error ) { cfg := & Config { } // If the entire config body is empty the UnmarshalYAML method is // never called. We thus have to set the DefaultConfig at the entry // point as well. * cfg = DefaultConfig err := yaml . UnmarshalStrict ( [ ] byte ( s ) , cfg ) if err != nil { return nil , err } cfg . original = s return cfg , nil }
// Load parses the YAML input s into a Config.
Load parses the YAML input s into a Config .