| // Code generated by "stringer -type=Status,BotStatus"; DO NOT EDIT. |
| |
| package milostatus |
| |
| 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[NotRun-0] |
| _ = x[Running-1] |
| _ = x[Success-2] |
| _ = x[Failure-3] |
| _ = x[Warning-4] |
| _ = x[InfraFailure-5] |
| _ = x[Exception-6] |
| _ = x[Expired-7] |
| _ = x[Canceled-8] |
| } |
| |
| const _Status_name = "NotRunRunningSuccessFailureWarningInfraFailureExceptionExpiredCanceled" |
| |
| var _Status_index = [...]uint8{0, 6, 13, 20, 27, 34, 46, 55, 62, 70} |
| |
| func (i Status) String() string { |
| if i < 0 || i >= Status(len(_Status_index)-1) { |
| return "Status(" + strconv.FormatInt(int64(i), 10) + ")" |
| } |
| return _Status_name[_Status_index[i]:_Status_index[i+1]] |
| } |
| 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[Idle-0] |
| _ = x[Busy-1] |
| _ = x[Offline-2] |
| } |
| |
| const _BotStatus_name = "IdleBusyOffline" |
| |
| var _BotStatus_index = [...]uint8{0, 4, 8, 15} |
| |
| func (i BotStatus) String() string { |
| if i < 0 || i >= BotStatus(len(_BotStatus_index)-1) { |
| return "BotStatus(" + strconv.FormatInt(int64(i), 10) + ")" |
| } |
| return _BotStatus_name[_BotStatus_index[i]:_BotStatus_index[i+1]] |
| } |