Skip to main content

How to use the Temporal Go SDK

Build Status Coverage Status Go reference

The Temporal Go SDK provides a framework for Temporal Application development in the Go language. The SDK contains the following tools:

  • A Temporal Client to communicate with a Temporal Cluster
  • APIs to use within your Workflows
  • APIs to create and manage Worker Entities and Worker Processes

Get the SDK

Add the Temporal Go SDK to your project:

go get -u go.temporal.io/sdk@latest

Or clone the Go SDK repo to your preferred location:

git clone git@github.com:temporalio/sdk-go.git

Are there executable code samples?

You can find a complete list of executable code samples in the samples library, which includes Temporal Go SDK code samples from the temporalio/samples-go repo. Additionally, each of the Go SDK Tutorials is backed by a fully executable template application.

Where is the Go SDK technical reference?

The Temporal Go SDK API reference is published on pkg.go.dev

Where can I find video demos?

Temporal Go SDK YouTube playlist