Is it possible to get the bucket UUID?

I’m looking for the gocb equivalent of:

I did a quick search through the gocb API docs and nothing jumped out at me. Is this available in gocb anywhere?

The backstory on why I’m looking for this functionality – I was hoping to add a UUID() function to the generic sync gateway bucket interface to avoid some type assertions in the code.

Hey @traun,

The bucket UUID is more of a Couchbase internal value, and is not exposed by gocb nor gocbcore, though it could be added to gocbcore’s Internal() interface if there is a need.

Cheers, Brett

Now possible via: