The Couchbase Go SDK 2.x is a complete rewrite of the API, reducing the number of overloads to present a simplified surface area, and adding support for future Couchbase Server features like Collections and Scopes (available in Couchbase Server 6.5 & 6.6 as a developer preview). The Go 2.x SDK also introduces improved error handling providing extra error information.

// get a collection reference
collection := bucket.DefaultCollection()

// for a named collection and scope
// scope := bucket.Scope("my-scope")
// collection := scope.Collection("my-collection")

Couchbase Go SDK 2.2

Getting Started

Dive right in with a quick install and Hello World. Try out our Travel Sample Application. And take a look at the developer preview of Collections.

Practical Howto Docs

Connect to our services — data (KV); Query; Search; Analytics; Views — and the Sub-Document API.

Reference Guides

The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.

What’s Hot?

The Couchbase Go SDK 2.x is a complete rewrite of the API, reducing the number of overloads to present a simplified surface area. Version 2 of the Go SDK has added support for Go Modules. Error handling is improved with extra information.

About

Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 3.0 API.

Community

For community help, visit the Couchbase forums. The Go SDK can be combined with many other projects in the broader Go ecosystem and beyond — in the Couchbase Blog there are several examples.