Skip to content

Sync the Go Standalone Activities quickstart code with Snipsync - #5803

Merged
Duncanma merged 2 commits into
mainfrom
duncan/go-standalone-quickstart-snipsync
Nov 25, 2026
Merged

Duncanma merged 2 commits into
mainfrom
duncan/go-standalone-quickstart-snipsync

Conversation

@Duncanma

@Duncanma Duncanma commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Moves the Go Standalone Activities quickstart from hand-typed code to Snipsync. It was the last Quickstart (SetupStep) page with hand-typed SDK code. Part of #5105.

  • The Activity, Worker and starter code now comes from go-sandbox/activities/standalone/ in documentation-sdk-code-examples, which compiles in CI. The three hand-typed Go files in code={} props are gone, along with the inline 4-line ExecuteActivity block.
  • Readers now clone documentation-sdk-code-examples and run from go-sandbox, like the Python and TypeScript quickstarts. The page used to point at samples-go.
  • New step: start the Activity by type name. It replaces the inline block that showed a function reference and a string type name side by side.
  • The list and count code the old starter showed is now its own step. It reuses the feature guide's go-standalone-activity-list and -count snippets, run with -command list and -command count.
  • The CLI example uses --start-to-close-timeout to match the sample. The Go prerequisite is now 1.26+, which the sample's go.mod requires.

Notes to reviewers

  • Synced from code-examples main. Add Go Standalone Activities quickstart snippets documentation-sdk-code-examples#311 has merged. A Snipsync run against its merge commit (9aa18fb) leaves this page unchanged.
  • The #execute-activity anchor, which encyclopedia/activities/activity-execution.mdx links to, is unchanged.
  • I ran the sample end to end against temporal server start-dev: Worker, start, start-by-name, list, count, and the CLI command.
  • Checked with vale --config .vale-ci.ini (clean), yarn check:snipsync-markers (clean) and yarn build (passes). I also looked at the built page: every step's code column shows the right snippets, each titled with its source link.
  • yarn report:snipsync-coverage: develop/go 98.2% → 98.3%, with 70 more synced lines. The coverage report doesn't count code inside code={} template literals, so the 84 hand-typed lines this removes never showed up as inline.

Replace the hand-typed Go in the quickstart's code={} props with
snippets from documentation-sdk-code-examples, matching the other SDK
quickstarts. Add steps for starting the Activity by type name and for
listing and counting Activities.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Nov 25, 2026 4:58pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Snipsync coverage

SDK code lines in docs/ that come from Snipsync: 62.3% → 62.5% (+0.2 pts), 26,366 of 42,210 lines.

Section Snipsync lines Inline lines Snipsync % Change
develop/go 4,285 → 4,355 164 → 77 96.3% → 98.3% +2.0 pts
All sections

All languages: 53.5% (27,233 of 50,885 lines).

Section Snipsync lines Inline lines Snipsync %
design-patterns 26 7,808 0.3%
develop/python 5,721 536 91.4%
develop/java 4,639 49 99.0%
guides 34 4,496 0.8%
develop/go 4,355 77 98.3%
develop/typescript 3,706 313 92.2%
develop/dotnet 3,029 7 99.8%
develop/rust 1,571 0 100.0%
develop/php 1,394 0 100.0%
develop/ruby 1,232 0 100.0%
develop 484 606 44.4%
production-deployment 116 746 13.5%
encyclopedia 0 837 0.0%
develop/worker-performance 48 177 21.3%
cloud 0 127 0.0%
references 0 48 0.0%
best-practices 11 17 39.3%
Language Snipsync lines Inline lines Snipsync %
Python 5,864 6,618 47.0%
Go 4,495 3,178 58.6%
Java 4,724 2,593 64.6%
TypeScript 3,873 2,777 58.2%
C# 3,104 464 87.0%
Rust 1,609 31 98.1%
Ruby 1,303 159 89.1%
PHP 1,394 24 98.3%
Snipsync origin Lines
temporalio/documentation-sdk-code-examples 21,177
temporalio/samples-python 2,794
temporalio/samples-typescript 697
temporalio/samples-dotnet 655
temporalio/features 464
temporalio/samples-go 384
temporalio/samples-java 184
temporalio/reference-app-orders-go 11

Compared with a41de06. Counts non-blank lines in fenced code blocks and <CodeSnippet> elements tagged with an SDK language. Hand-written code isn't compiled anywhere; code Snipsync pulls from a sample repository is built in that repository's CI. See UTILITIES.md.

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

@Duncanma
Duncanma marked this pull request as ready for review November 24, 2026 17:47
@Duncanma
Duncanma requested a review from a team as a code owner November 24, 2026 17:47
Copilot AI balanced review requested due to automatic review settings November 24, 2026 17:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Go Standalone Activities quickstart’s migration to Snipsync-managed samples.

No open issues 🎉

What changed in this PR

Migrates the Go Standalone Activities quickstart to Snipsync-managed, CI-tested samples, addressing the last quickstart with hand-written SDK code as part of #5105.

Changes:

  • Replaces hand-written Go examples with synced snippets from documentation-sdk-code-examples.
  • Updates clone/run instructions, the Go prerequisite, and the CLI timeout option to match the sample.
  • Adds dedicated steps for execution by type name and listing/counting Activities, while preserving the existing execution anchor.
File Description
docs/​develop/​go/​activities/​standalone-activities-quickstart.mdx Converts examples to Snipsync and aligns the walkthrough with the shared Go sample.

Review effort: Balanced

@Duncanma
Duncanma merged commit 1941538 into main Nov 25, 2026
17 of 18 checks passed
@Duncanma
Duncanma deleted the duncan/go-standalone-quickstart-snipsync branch November 25, 2026 16:56

This branch was successfully deployed

1 active deployment
Preview — 216b15e6 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants