code: func ParseConfigFromYamlFile(path string, cfg interface{}) error {
  	b, err := ioutil.ReadFile(path)
  	if err != nil {
  		return err
  	}
  
  	err = yaml.Unmarshal(b, cfg)
  	if err != nil {
  		return err
  	}
  	return nil
  }
docs: // ParseConfigFromYamlFile parses a configuration from a file in YAML
  // format. The file's location is specified by the <path> parameter and the
  // resulting config is stored into the structure referenced by the <cfg>
  // parameter.
  // If the file doesn't exist or cannot be read, the returned error will
  // be of type os.PathError. An untyped error is returned in case the file
  // doesn't contain a valid YAML configuration.