Couchbase Go SDK Installation

      +
      Installation instructions for the Couchbase Go Client.

      This page gives full installation instructions for the Go SDK. In most cases, the Quickstart Guide should be enough to get you up and running if you’re in a hurry.

      Prerequisites

      In line with the Golang project, Couchbase supports both the current, and the previous, versions of Go. Earlier versions may work, but are not supported.

      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 only works if you have initialised a Go module, and have a go.mod file in your working directory.
      Install the latest version of the Couchbase 2.12 Go SDK
      $ go get github.com/couchbase/gocb/v2@v2.12.1

      Further Information

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