code: func NewYAMLOrJSONDecoder(r io.Reader, bufferSize int) *YAMLOrJSONDecoder {
  	return &YAMLOrJSONDecoder{
  		r:          r,
  		bufferSize: bufferSize,
  	}
  }
docs: // NewYAMLOrJSONDecoder returns a decoder that will process YAML documents
  // or JSON documents from the given reader as a stream. bufferSize determines
  // how far into the stream the decoder will look to figure out whether this
  // is a JSON stream (has whitespace followed by an open brace).