How to develop a Workflow Definition in Go
Use the Dial()
API available in the go.temporal.io/sdk/client
package to create a new Client
func YourWorkflowDefinition(ctx workflow.Context) error {
// ...
return nil
}
In Go, by default, the Workflow Type name is the same as the function name.