code: func NewYAMLToJSONDecoder(r io.Reader) *YAMLToJSONDecoder {
  	scanner := bufio.NewScanner(r)
  	scanner.Split(splitYAMLDocument)
  	return &YAMLToJSONDecoder{
  		scanner: scanner,
  	}
  }
docs: // NewYAMLToJSONDecoder decodes YAML documents from the provided
  // stream in chunks by converting each document (as defined by
  // the YAML spec) into its own chunk, converting it to JSON via
  // yaml.YAMLToJSON, and then passing it to json.Decoder.