Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Code generated by "stringer -type=Status,ComponentType,Verbosity"; DO NOT EDI T | 1 // Code generated by "stringer -type=Status,ComponentType,Verbosity"; DO NOT EDI T. |
|
nodir
2017/04/04 23:12:08
did stringer change?
hinoka
2017/04/05 20:45:06
I guess so, it did this in another CL also.
| |
| 2 | 2 |
| 3 package resp | 3 package resp |
| 4 | 4 |
| 5 import "fmt" | 5 import "fmt" |
| 6 | 6 |
| 7 const _Status_name = "NotRunRunningSuccessFailureWarningInfraFailureExpiredDepen dencyFailureWaitingDependency" | 7 const _Status_name = "NotRunRunningSuccessFailureWarningInfraFailureExpiredDepen dencyFailureWaitingDependency" |
| 8 | 8 |
| 9 var _Status_index = [...]uint8{0, 6, 13, 20, 27, 34, 46, 53, 70, 87} | 9 var _Status_index = [...]uint8{0, 6, 13, 20, 27, 34, 46, 53, 70, 87} |
| 10 | 10 |
| 11 func (i Status) String() string { | 11 func (i Status) String() string { |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 29 const _Verbosity_name = "NormalHiddenInteresting" | 29 const _Verbosity_name = "NormalHiddenInteresting" |
| 30 | 30 |
| 31 var _Verbosity_index = [...]uint8{0, 6, 12, 23} | 31 var _Verbosity_index = [...]uint8{0, 6, 12, 23} |
| 32 | 32 |
| 33 func (i Verbosity) String() string { | 33 func (i Verbosity) String() string { |
| 34 if i < 0 || i >= Verbosity(len(_Verbosity_index)-1) { | 34 if i < 0 || i >= Verbosity(len(_Verbosity_index)-1) { |
| 35 return fmt.Sprintf("Verbosity(%d)", i) | 35 return fmt.Sprintf("Verbosity(%d)", i) |
| 36 } | 36 } |
| 37 return _Verbosity_name[_Verbosity_index[i]:_Verbosity_index[i+1]] | 37 return _Verbosity_name[_Verbosity_index[i]:_Verbosity_index[i+1]] |
| 38 } | 38 } |
| OLD | NEW |