Couchbase Go SDK 2.7
// get a default collection reference
collection := bucket.DefaultCollection()
// for a named collection and scope
scope := bucket.Scope("inventory")
collection = scope.Collection("airport")
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.
Using Your Database
How-to guides to help you start your development journey with Couchbase and the Go SDK.
Getting Started
Transactions
Working with Data
Managing Couchbase
Errors & Diagnostics
Learn
Take a deep-dive into the SDK concept material and learn more about Couchbase.
Data Concepts
Errors & Diagnostics Concepts
Resources
Useful resources to help support your development experience with Couchbase and the Go SDK.