Couchbase Go SDK Installation

      +
      Installation instructions for the Couchbase Go Client.

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

      If you’re upgrading your application from Couchbase Go SDK 1.x, please read our Migration Guide.

      Installing the SDK

      Version 2 of the Go SDK has added support for Go Modules. You can use go get to download the SDK:

      $ go get github.com/couchbase/gocb/v2@v2.5.1
      In line with the Golang project, we support both the current, and the previous, versions of Go. Older versions may work, but are not supported.

      Information on new features, fixes, and known issues — as well as information on how to install older release versions — is in the release notes.