this repo has no description
at master 27 lines 664 B view raw
1// Code generated by "stringer -type=State"; DO NOT EDIT. 2 3package flow 4 5import "strconv" 6 7func _() { 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[Waiting-0] 12 _ = x[Ready-1] 13 _ = x[Running-2] 14 _ = x[Terminated-3] 15} 16 17const _State_name = "WaitingReadyRunningTerminated" 18 19var _State_index = [...]uint8{0, 7, 12, 19, 29} 20 21func (i State) String() string { 22 idx := int(i) - 0 23 if i < 0 || idx >= len(_State_index)-1 { 24 return "State(" + strconv.FormatInt(int64(i), 10) + ")" 25 } 26 return _State_name[_State_index[idx]:_State_index[idx+1]] 27}