cuelang.org/go@v0.13.0/internal/core/adt/runmode_string.go (about) 1 // Code generated by "stringer -type=runMode"; DO NOT EDIT. 2 3 package adt 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[ignore-1] 12 _ = x[attemptOnly-2] 13 _ = x[yield-3] 14 _ = x[finalize-4] 15 } 16 17 const _runMode_name = "ignoreattemptOnlyyieldfinalize" 18 19 var _runMode_index = [...]uint8{0, 6, 17, 22, 30} 20 21 func (i runMode) String() string { 22 i -= 1 23 if i >= runMode(len(_runMode_index)-1) { 24 return "runMode(" + strconv.FormatInt(int64(i+1), 10) + ")" 25 } 26 return _runMode_name[_runMode_index[i]:_runMode_index[i+1]] 27 }