How to develop a Workflow Definition in Go
In the Temporal Go SDK programming model, a Workflow Definition is an exportable function.
func YourWorkflowDefinition(ctx workflow.Context) error {
// ...
return nil
}
In Go, by default, the Workflow Type name is the same as the function name.