make generate: stringer was updated and now uses strconv instead of fmt
https://github.com/golang/tools/commit/bd4635fd25596cdd56c1fb399c53b351d1a81f2d#diff-0415b5286e4cf3e373f349d917e5e039
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
package rpc
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
const _Status_name = "StatusOKStatusRequestErrorStatusServerErrorStatusError"
|
||||
|
||||
@@ -11,7 +11,7 @@ var _Status_index = [...]uint8{0, 8, 26, 43, 54}
|
||||
func (i Status) String() string {
|
||||
i -= 1
|
||||
if i >= Status(len(_Status_index)-1) {
|
||||
return fmt.Sprintf("Status(%d)", i+1)
|
||||
return "Status(" + strconv.FormatInt(int64(i+1), 10) + ")"
|
||||
}
|
||||
return _Status_name[_Status_index[i]:_Status_index[i+1]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user