func (d *db) Rev(ctx context.Context, docID string) (rev string, err error) {
	res, err := d.Client.DoError(ctx, http.MethodHead, d.path(chttp.EncodeDocID(docID), nil), nil)
	if err != nil {
		return "", err
	}
	return strings.Trim(res.Header.Get("Etag"), `""`), nil
}
// Rev returns the most current rev of the requested document.
Rev returns the most current rev of the requested document.
// Rev returns the most current rev of the requested document .
func (d *db) Rev(ctx context.Context, docID string) (rev string, err error) {
	res, err := d.Client.DoError(ctx, http.MethodHead, d.path(chttp.EncodeDocID(docID), nil), nil)
	if err != nil {
		return "", err
	}
	return strings.Trim(res.Header.Get("Etag"), `""`), nil
}
func ( d * db ) Rev ( ctx context . Context , docID string ) ( rev string , err error ) { res , err := d . Client . DoError ( ctx , http . MethodHead , d . path ( chttp . EncodeDocID ( docID ) , nil ) , nil ) if err != nil { return " " , err } return strings . Trim ( res . Header . Get ( " " ) , `""` ) , nil }
Rev returns the most current rev of the requested document.
Rev returns the most current rev of the requested document .