diff options
Diffstat (limited to 'internal/command/commandtype_string.go')
-rw-r--r-- | internal/command/commandtype_string.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/command/commandtype_string.go b/internal/command/commandtype_string.go new file mode 100644 index 0000000..ef5080a --- /dev/null +++ b/internal/command/commandtype_string.go @@ -0,0 +1,25 @@ +// Code generated by "stringer -type=CommandType"; DO NOT EDIT. + +package command + +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[Create-0] + _ = x[Merge-1] + _ = x[Remove-2] +} + +const _CommandType_name = "CreateMergeRemove" + +var _CommandType_index = [...]uint8{0, 6, 11, 17} + +func (i CommandType) String() string { + if i < 0 || i >= CommandType(len(_CommandType_index)-1) { + return "CommandType(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _CommandType_name[_CommandType_index[i]:_CommandType_index[i+1]] +} |