// StepName Returns the name based on step options
StepName Returns the name based on step options
// StepName Returns the name based on step options
func (s *StepOptions) StepName(selector []int) string {
	var stepName string
	if s != nil && len(s.Name) > 0 {
		stepName = s.Name
	} else {
		var nameBuilder bytes.Buffer
		for i, segment := range selector {
			if i > 0 {
				nameBuilder.WriteString(".")
			}
			nameBuilder.WriteString(strconv.Itoa(segment))
		}
		stepName = nameBuilder.String()
	}
	return stepName
}
func ( s * StepOptions ) StepName ( selector [ ] int ) string { var stepName string if s != nil && len ( s . Name ) > 0 { stepName = s . Name } else { var nameBuilder bytes . Buffer for i , segment := range selector { if i > 0 { nameBuilder . WriteString ( " " ) } nameBuilder . WriteString ( strconv . Itoa ( segment ) ) } stepName = nameBuilder . String ( ) } return stepName }
StepName Returns the name based on step options
StepName Returns the name based on step options