github.com/sandwich-go/boost@v1.3.29/misc/annotation/step_string.go (about) 1 // Code generated by "stringer -type=step"; DO NOT EDIT. 2 3 package annotation 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[initialStep-0] 12 _ = x[annotationNameStep-1] 13 _ = x[attributeNameStep-2] 14 _ = x[attributeValueStep-3] 15 _ = x[doneStep-4] 16 } 17 18 const _step_name = "initialStepannotationNameStepattributeNameStepattributeValueStepdoneStep" 19 20 var _step_index = [...]uint8{0, 11, 29, 46, 64, 72} 21 22 func (i step) String() string { 23 if i < 0 || i >= step(len(_step_index)-1) { 24 return "step(" + strconv.FormatInt(int64(i), 10) + ")" 25 } 26 return _step_name[_step_index[i]:_step_index[i+1]] 27 }