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:
Christian Schwarz
2018-04-01 15:30:04 +02:00
parent 0d2f73d728
commit 75fd21e454
4 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -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]]
}