Skip to content

[Sdk-Go] warn users not to register struct methods as workflows#3679

Merged
axfelix merged 3 commits intotemporalio:mainfrom
yuandrew:go-warn-struct-workflows
Jul 16, 2025
Merged

[Sdk-Go] warn users not to register struct methods as workflows#3679
axfelix merged 3 commits intotemporalio:mainfrom
yuandrew:go-warn-struct-workflows

Conversation

@yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Jul 11, 2025

What does this PR do?

This is to address temporalio/sdk-go#1986, the team has decided adding a note in the docs is more suitable than adding a warning log in the SDK itself.

Notes to reviewers

Linked work item and closed SDK PR should have all of the context for this

@yuandrew yuandrew requested a review from a team as a code owner July 11, 2025 20:48
@@ -409,6 +409,14 @@ Activities written as struct methods can use shared struct variables, such as:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the paragraph above starting with "In the Temporal Go SDK programming model," (GH won't let me add a comment that high up), I noticed "struct" seems to be punctuated inconsistently, that paragraph alone has struct, Struct, and struct in different sentences. Not sure if that's something we want to make consistent

@axfelix axfelix merged commit d8c9b89 into temporalio:main Jul 16, 2025
4 checks passed
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.

3 participants