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 Couchbase Server features like Collections and Scopes (available from 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.5

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?

Multi-Document Distributed ACID Transactions from the Node.js SDK.

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.

About

Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 2.x 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.

Older SDK Versions

Documentation on older, unsupported versions of the SDK — that have reached end-of-life — can be found in the archive.