Categorygithub.com/codingXiang/go-workflow
repositorypackage
1.1.1
Repository: https://github.com/codingxiang/go-workflow.git
Documentation: pkg.go.dev

# README

go-workflow

deprecated

Simple control flow library to setup a series of steps to execute.

Example

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()