// Select Select a workflow step
Select Select a workflow step
// Select Select a workflow step
func (w *Workflow) Select(selector []int) *WorkflowStep {
	var step *WorkflowStep
	for _, segment := range selector {
		if step == nil {
			step = &w.Spec.Steps[segment]
		} else {
			step = &step.Compound.Steps[segment]
		}
	}
	return step
}
func ( w * Workflow ) Select ( selector [ ] int ) * WorkflowStep { var step * WorkflowStep for _ , segment := range selector { if step == nil { step = & w . Spec . Steps [ segment ] } else { step = & step . Compound . Steps [ segment ] } } return step }
Select Select a workflow step
Select Select a workflow step