func readBaseFromMultidocBundle(r io.Reader) (*BundleData, bool, error) {
	parts, err := parseBundleParts(r)
	if err != nil {
		return nil, false, err
	}

	if len(parts) == 0 {
		return nil, false, errors.NotValidf("empty bundle")
	}

	return parts[0].Data, len(parts) > 1, nil
}
// readBaseFromMultidocBundle reads the bundle data corresponding to the first
// (base) bundle off the given reader. The function returns a boolean flag to
// indicate whether the bundle contains additional documents that the parser
// ignored.
//
// Clients that are interested in reading multi-doc bundle data should use the
// new helpers: LocalBundleDataSource and StreamBundleDataSource.
readBaseFromMultidocBundle reads the bundle data corresponding to the first
(base) bundle off the given reader. The function returns a boolean flag to
indicate whether the bundle contains additional documents that the parser
ignored.

Clients that are interested in reading multi-doc bundle data should use the
new helpers: LocalBundleDataSource and StreamBundleDataSource.
// readBaseFromMultidocBundle reads the bundle data corresponding to the first // ( base ) bundle off the given reader . The function returns a boolean flag to // indicate whether the bundle contains additional documents that the parser // ignored . // // Clients that are interested in reading multi - doc bundle data should use the // new helpers : LocalBundleDataSource and StreamBundleDataSource .
func readBaseFromMultidocBundle(r io.Reader) (*BundleData, bool, error) {
	parts, err := parseBundleParts(r)
	if err != nil {
		return nil, false, err
	}
	if len(parts) == 0 {
		return nil, false, errors.NotValidf("empty bundle")
	}
	return parts[0].Data, len(parts) > 1, nil
}
func readBaseFromMultidocBundle ( r io . Reader ) ( * BundleData , bool , error ) { parts , err := parseBundleParts ( r ) if err != nil { return nil , false , err } if len ( parts ) == 0 { return nil , false , errors . NotValidf ( " " ) } return parts [ 0 ] . Data , len ( parts ) > 1 , nil }
readBaseFromMultidocBundle reads the bundle data corresponding to the first
(base) bundle off the given reader.
readBaseFromMultidocBundle reads the bundle data corresponding to the first ( base ) bundle off the given reader .