github.com/ethereum/go-ethereum@v1.16.1/core/tracing/gen_nonce_change_reason_stringer.go (about) 1 // Code generated by "stringer -type=NonceChangeReason -trimprefix NonceChange -output gen_nonce_change_reason_stringer.go"; DO NOT EDIT. 2 3 package tracing 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[NonceChangeUnspecified-0] 12 _ = x[NonceChangeGenesis-1] 13 _ = x[NonceChangeEoACall-2] 14 _ = x[NonceChangeContractCreator-3] 15 _ = x[NonceChangeNewContract-4] 16 _ = x[NonceChangeAuthorization-5] 17 _ = x[NonceChangeRevert-6] 18 } 19 20 const _NonceChangeReason_name = "UnspecifiedGenesisEoACallContractCreatorNewContractAuthorizationRevert" 21 22 var _NonceChangeReason_index = [...]uint8{0, 11, 18, 25, 40, 51, 64, 70} 23 24 func (i NonceChangeReason) String() string { 25 if i >= NonceChangeReason(len(_NonceChangeReason_index)-1) { 26 return "NonceChangeReason(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _NonceChangeReason_name[_NonceChangeReason_index[i]:_NonceChangeReason_index[i+1]] 29 }