Versions in this module Expand all Collapse all v0 v0.14.0 Mar 25, 2026 Changes in this version + var Noop = NewStepFunc(Continue) + var Terminal = NewTerminalStepFunc(func(context.Context) { ... }) + func Run(ctx context.Context, newStep NewStep) + func WithErrorHandler(ctx context.Context, handler func(error) Step) context.Context + type ContextFunc func(context.Context) context.Context + type DecisionStep struct + func (d *DecisionStep) Run(ctx context.Context) Step + type EnumStep struct + func (e *EnumStep[T]) Run(ctx context.Context) Step + type NewStep func(next Step) Step + func Decision(predicate func(context.Context) bool, trueHandler, falseHandler NewStep) NewStep + func Do(fn ContextFunc) NewStep + func Enum[T comparable](selector func(context.Context) T, cases map[T]NewStep, defaultHandler NewStep) NewStep + func NewStepFunc(fn func(ctx context.Context, next Step) Step) NewStep + func NewTerminalStepFunc(fn func(ctx context.Context)) NewStep + func Parallel(steps ...NewStep) NewStep + func ParallelWith(wrapper func(NewStep) NewStep, steps ...NewStep) NewStep + func Recover(step NewStep) NewStep + func Sequence(steps ...NewStep) NewStep + func Switch(selector func(context.Context) string, cases map[string]NewStep, ...) NewStep + func When(predicate func(context.Context) bool, trueHandler NewStep) NewStep + func (ns NewStep) Step() Step + type PanicError struct + Value any + func (p *PanicError) Error() string + type ParallelStep struct + func (p *ParallelStep) Run(ctx context.Context) Step + type Step interface + Run func(context.Context) Step + func Continue(ctx context.Context, next Step) Step + type StepFunc func(ctx context.Context) Step + func (f StepFunc) Run(ctx context.Context) Step