1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
// Code generated by "stringer -type=runMode"; DO NOT EDIT.
package adt
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ignore-1]
_ = x[attemptOnly-2]
_ = x[yield-3]
_ = x[finalize-4]
}
const _runMode_name = "ignoreattemptOnlyyieldfinalize"
var _runMode_index = [...]uint8{0, 6, 17, 22, 30}
func (i runMode) String() string {
i -= 1
if i >= runMode(len(_runMode_index)-1) {
return "runMode(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _runMode_name[_runMode_index[i]:_runMode_index[i+1]]
}
|