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 7.0). The Go 2.x SDK also introduces improved error handling providing extra error information.

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

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

Couchbase Go SDK 2.3

Getting Started

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

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?

Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application. Integrate with Open Telemetry API to instrument telemetry data for your mission critical workloads that will make troubleshooting and debugging of your applications easier than ever. Add an additional layer of security and protect your sensitive workloads using our Client Side Field Level Encryption capability.


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


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.