func decodeYaml(r io.Reader, v interface{}) error {
	bytes, err := ioutil.ReadAll(r)
	if err == nil {
		yaml.Unmarshal(bytes, v)
	}
	return err
}
func decodeYaml(r io.Reader, v interface{}) error {
	bytes, err := ioutil.ReadAll(r)
	if err == nil {
		yaml.Unmarshal(bytes, v)
	}
	return err
}
// decodeYaml takes a reader to a YAML file and unmarshals it to the given struct.