Errors in Go examples


#1

Hi,

A. Page: http://developer.couchbase.com/documentation/server/4.0/sdks/go-beta/introduction.html

Example with:
rows := myBucket.ExecuteViewQuery(vq)

However ExecuteViewQuery returns 2 values in fact, i.e. error return is missing.

B. http://developer.couchbase.com/documentation/server/4.0/sdks/go-beta/querying.html

Read Your Own Writes (RYOW)
Error in myQuery.consistency(gocb.RequestPlus)
gocb uses a capital letter for Consistency function, i.e. should be myQuery.Consistency(gocb.RequestPlus)

C. same page, same example

rows, err := myBucket.ExecuteN1qlQuery(myQuery)
Here second param is missing

Guys, looks like Go docs need some good revision

Hope this helps,
Dennis


#2

Hey @dennis,
This will be resolved shortly.
Cheers, Brett


#3

@brett19
Great!
Thanks,
D