tendermint/types/retcode_string.go

17 lines
495 B
Go
Raw Normal View History

2015-11-27 11:07:16 -05:00
// generated by stringer -type=RetCode; DO NOT EDIT
package types
import "fmt"
const _RetCode_name = "RetCodeOKRetCodeInternalErrorRetCodeUnauthorizedRetCodeInsufficientFeesRetCodeUnknownRequestRetCodeEncodingErrorRetCodeInvalidNonce"
2015-11-27 11:07:16 -05:00
var _RetCode_index = [...]uint8{0, 9, 29, 48, 71, 92, 112, 131}
2015-11-27 11:07:16 -05:00
func (i RetCode) String() string {
if i < 0 || i >= RetCode(len(_RetCode_index)-1) {
2015-11-27 11:07:16 -05:00
return fmt.Sprintf("RetCode(%d)", i)
}
return _RetCode_name[_RetCode_index[i]:_RetCode_index[i+1]]
}