neoneo-go/pkg/smartcontract/trigger/trigger_type_string.go
Anna Shaleva 34df5d5949 smartcontract: update trigger.Type stringer
We have to explicitly specify the type of `All` trigger type for proper
automatic generation of string representation.
2020-09-07 11:13:58 +03:00

37 lines
765 B
Go

// Code generated by "stringer -type=Type -output=trigger_type_string.go"; DO NOT EDIT.
package trigger
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[System-1]
_ = x[Verification-32]
_ = x[Application-64]
_ = x[All-97]
}
const (
_Type_name_0 = "System"
_Type_name_1 = "Verification"
_Type_name_2 = "Application"
_Type_name_3 = "All"
)
func (i Type) String() string {
switch {
case i == 1:
return _Type_name_0
case i == 32:
return _Type_name_1
case i == 64:
return _Type_name_2
case i == 97:
return _Type_name_3
default:
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
}
}