Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created February 28, 2022 18:45
Show Gist options
  • Save percybolmer/5d03f67dd910b0354468232e44e6732f to your computer and use it in GitHub Desktop.
Save percybolmer/5d03f67dd910b0354468232e44e6732f to your computer and use it in GitHub Desktop.
Cadence-register workflows and activites
func init() {
// init will be called once the workflow file is imported
// this will Register the workflow to the Worker service
workflow.Register(workflowGreetings)
// Register the activities also
activity.Register(activityGreetings)
activity.Register(activityStoreCustomer)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment