mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 19:21:44 +00:00
retcode.Error() from go generate
This commit is contained in:
16
types/retcode_string.go
Normal file
16
types/retcode_string.go
Normal file
@ -0,0 +1,16 @@
|
||||
// generated by stringer -type=RetCode; DO NOT EDIT
|
||||
|
||||
package types
|
||||
|
||||
import "fmt"
|
||||
|
||||
const _RetCode_name = "RetCodeOKRetCodeInternalErrorRetCodeUnauthorizedRetCodeInsufficientFeesRetCodeUnknownRequest"
|
||||
|
||||
var _RetCode_index = [...]uint8{0, 9, 29, 48, 71, 92}
|
||||
|
||||
func (i RetCode) String() string {
|
||||
if i < 0 || i+1 >= RetCode(len(_RetCode_index)) {
|
||||
return fmt.Sprintf("RetCode(%d)", i)
|
||||
}
|
||||
return _RetCode_name[_RetCode_index[i]:_RetCode_index[i+1]]
|
||||
}
|
Reference in New Issue
Block a user