Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active February 28, 2022 18:23
Show Gist options
  • Save percybolmer/196ecc58e28aeaf0cfe9d54bf749057e to your computer and use it in GitHub Desktop.
Save percybolmer/196ecc58e28aeaf0cfe9d54bf749057e to your computer and use it in GitHub Desktop.
candece-workflow examples
// This function is valid, accepts a Customer in JSON format as Input, Outputs a Customer and an error
func workflowGreetings(ctx workflow.Context, visitor customer.Customer) (customer.Customer, error)
// This could be valid, accept No input and Output a Customer and Error.
func workflowGreetings(ctx workflow.Context) (customer.Customer, error)
// Accept string as input, output only an Error
func workflowGreetings(ctx workflow.Context, input string) error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment