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
The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.
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.