github.com/informationsea/shellflow@v0.1.3/jobstate_string.go (about) 1 // Code generated by "stringer -type=JobState"; DO NOT EDIT. 2 3 package main 4 5 import "strconv" 6 7 const _JobState_name = "JobDoneJobRunningJobFailedJobPendingJobUnknown" 8 9 var _JobState_index = [...]uint8{0, 7, 17, 26, 36, 46} 10 11 func (i JobState) String() string { 12 if i < 0 || i >= JobState(len(_JobState_index)-1) { 13 return "JobState(" + strconv.FormatInt(int64(i), 10) + ")" 14 } 15 return _JobState_name[_JobState_index[i]:_JobState_index[i+1]] 16 }