code: func (d *YAMLToJSONDecoder) Decode(into interface{}) error {
  	bytes, err := d.reader.Read()
  	if err != nil && err != io.EOF {
  		return err
  	}
  
  	if len(bytes) != 0 {
  		err := yaml.Unmarshal(bytes, into)
  		if err != nil {
  			return YAMLSyntaxError{err}
  		}
  	}
  	return err
  }
docs: // Decode reads a YAML document as JSON from the stream or returns
  // an error. The decoding rules match json.Unmarshal, not
  // yaml.Unmarshal.