40 lines
937 B
Go
40 lines
937 B
Go
// Code generated by "stringer -type=AttrType -linecomment"; DO NOT EDIT.
|
|
|
|
package transaction
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[HighPriority-1]
|
|
_ = x[OracleResponseT-17]
|
|
_ = x[NotValidBeforeT-224]
|
|
_ = x[ConflictsT-225]
|
|
_ = x[NotaryAssistedT-226]
|
|
}
|
|
|
|
const (
|
|
_AttrType_name_0 = "HighPriority"
|
|
_AttrType_name_1 = "OracleResponse"
|
|
_AttrType_name_2 = "NotValidBeforeConflictsNotaryAssisted"
|
|
)
|
|
|
|
var (
|
|
_AttrType_index_2 = [...]uint8{0, 14, 23, 37}
|
|
)
|
|
|
|
func (i AttrType) String() string {
|
|
switch {
|
|
case i == 1:
|
|
return _AttrType_name_0
|
|
case i == 17:
|
|
return _AttrType_name_1
|
|
case 224 <= i && i <= 226:
|
|
i -= 224
|
|
return _AttrType_name_2[_AttrType_index_2[i]:_AttrType_index_2[i+1]]
|
|
default:
|
|
return "AttrType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|