The workflow-go SDK simplifies interaction with Temporal workflows, providing easy-to-use methods for managing workflows, activities, and workers.
Follow these steps to set up Temporal on your local environment:
-
Clone the Temporal Docker Compose Repository:
git clone https://github.com/temporalio/docker-compose
-
Navigate to the Cloned Repository:
cd docker-compose
-
Start the Temporal Server:
docker compose up
This will start the Temporal server using Docker Compose.
Ensure you have the following installed:
- Go (version 1.18 or later recommended)
- Docker and Docker Compose
Add the SDK to your project using go get
:
go get github.com/Zampfi/workflow-sdk-go
- Seamless Workflow Management: Start, query, signal, and cancel workflows.
- Worker Setup: Easily configure and run Temporal workers.
- Activity Registration: Simplified activity management.
This repository includes a samples
package that provides examples for various use cases. To use the samples:
- Start the worker first. -- go to the worker/main.go -- go run main.go
- Start the starter to trigger the workflows. -- go to the starter/main.go -- go run main.go
These examples demonstrate how to integrate and use the SDK in real-world scenarios.
-
Pull
main
. -
Add a git tag with a bumped version as per your change. If the current latest tag is v1.1.50, tag the latest commit on
main
withv1.1.51
.# example: git tag v1.1.51 git tag <version>
-
Push the tag
git push origin v1.1.51
-
go get
the latest version from the go project that you wish to use workflow-go sdk in.go get github.com/Zampfi/[email protected]