Error in Go SDK docs intro


#1

Hey,
on page http://docs.couchbase.com/developer/go-beta/introduction.html ,
in the part “Performing Queries”, instead of

vq := gocb.NewViewQuery(“beer”, “by_name”).Skip(6).Limit(3)
rows := myBucket.ExecuteViewQuery(vq)

var row interface{}
for rows.Next(&row) {
fmt.Printf(“Got row %+v\n”)
}

I believe there should be

    // Changed "by_name" to the view v4.0 actually has - "brewery_beers"
vq := gocb.NewViewQuery("beer", "brewery_beers").Skip(6).Limit(3)
rows := myBucket.ExecuteViewQuery(vq)

var row interface{}
for rows.Next(&row) {
             // Added "row"
	fmt.Printf("Got row `%+v`\n", row)
}

#2

@brett19 can you please take a look at this?

I tried to file a bug under the Go SDK project but it seems I don’t have perms to do so.


#4

Hey matthew,

That section of the tutorial details the by_name view and how to add it before it gets you to use it.

Cheers, Brett