func (d *db) Get(ctx context.Context, docID string, opts map[string]interface{}) (json.RawMessage, error) {
	params, err := optionsToParams(opts)
	if err != nil {
		return nil, err
	}
	resp, err := d.Client.DoReq(ctx, http.MethodGet, d.path(chttp.EncodeDocID(docID), params), &chttp.Options{Accept: "application/json; multipart/mixed"})
	if err != nil {
		return nil, err
	}
	if respErr := chttp.ResponseError(resp); respErr != nil {
		return nil, respErr
	}
	defer resp.Body.Close()
	doc := &bytes.Buffer{}
	doc.ReadFrom(resp.Body)
	return doc.Bytes(), nil
}
// Get fetches the requested document.
Get fetches the requested document.
// Get fetches the requested document .
func (d *db) Get(ctx context.Context, docID string, opts map[string]interface{}) (json.RawMessage, error) {
	params, err := optionsToParams(opts)
	if err != nil {
		return nil, err
	}
	resp, err := d.Client.DoReq(ctx, http.MethodGet, d.path(chttp.EncodeDocID(docID), params), &chttp.Options{Accept: "application/json; multipart/mixed"})
	if err != nil {
		return nil, err
	}
	if respErr := chttp.ResponseError(resp); respErr != nil {
		return nil, respErr
	}
	defer resp.Body.Close()
	doc := &bytes.Buffer{}
	doc.ReadFrom(resp.Body)
	return doc.Bytes(), nil
}
func ( d * db ) Get ( ctx context . Context , docID string , opts map [ string ] interface { } ) ( json . RawMessage , error ) { params , err := optionsToParams ( opts ) if err != nil { return nil , err } resp , err := d . Client . DoReq ( ctx , http . MethodGet , d . path ( chttp . EncodeDocID ( docID ) , params ) , & chttp . Options { Accept : " " } ) if err != nil { return nil , err } if respErr := chttp . ResponseError ( resp ) ; respErr != nil { return nil , respErr } defer resp . Body . Close ( ) doc := & bytes . Buffer { } doc . ReadFrom ( resp . Body ) return doc . Bytes ( ) , nil }
Get fetches the requested document.
Get fetches the requested document .