The recently released gocb lib (the official golang client for couchbase) offers API for performing bulk operations (Get, Delete, etc). I would love to see a complete example of such an operation, alas - my go skills are lacking and there's nothing online.
I'd like to see a snippet that (1) compiles and (2) performs multi-get and finally (3) manages to access the values returned from couchbase.
here's what little documentation exists online: http://developer.couchbase.com/documentation/server/4.0/sdks/go-beta/bulk-operations.html
the following code (which performs insert) is not enough: I want Get (and specifically - how one would review the contents of the get-operation results).
myBucket, _ := myCluster.OpenBucket("default", "")
var items []gocb.BulkOp
items = append(items, &gocb.InsertOp{Key: "document_name_1", Value: "Hello World 1"})
items = append(items, &gocb.InsertOp{Key: "document_name_2", Value: "Hello World 2"})
err := bucket.Do(items)