Simple control flow library to setup a series of steps to execute.
w := workflow.New()
w.OnFailure = workflow.InteractiveFailure
steps := []*workflow.Step{
&workflow.Step{
Label: "one",
Run: stepOne,
},
&workflow.Step{
Label: "two",
Run: stepTwo,
},
}
}
w.AddSteps(steps)
w.Run()