()
| 19 | var _Mode_index = [...]uint8{0, 5, 12, 19, 27} |
| 20 | |
| 21 | func (i Mode) String() string { |
| 22 | if i < 0 || i >= Mode(len(_Mode_index)-1) { |
| 23 | return "Mode(" + strconv.FormatInt(int64(i), 10) + ")" |
| 24 | } |
| 25 | return _Mode_name[_Mode_index[i]:_Mode_index[i+1]] |
| 26 | } |
| 27 | func _() { |
| 28 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 29 | // Re-run the stringer command to generate them again. |