couchbaselabs / couchbaselabs/beersample-go

Question

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

NewViewQuery on example returns nil -> i've been looking at the go api for couchbase and it seems that the NewViewQuery returns a nil reference for this example beer-example
Docs from here http://developer.couchbase.com/documentation/server/current/sdks/go-beta/querying.html
I wrote a small example myself as well and still same problem.

``` go
vq := gocb.NewViewQuery("brewery", "by_name").Limit(2)
rows, err := bucket.ExecuteViewQuery(vq)

if err != nil {
fmt.Printf("Error")
}

var row interface{}
for rows.Next(&row) { // rows is nil here and the loop crashes
fmt.Printf("Got row `%+v`\n")
}
```

I am running couchbase inside a docker container based on the official images and only expose the 8091 to the outside.
go version go1.6.2 darwin/amd64

Any help would be greatly appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.