ytui/pubsub/step_string.go
2022-06-26 23:37:08 -04:00

26 lines
614 B
Go

// Code generated by "stringer -type=Step"; DO NOT EDIT.
package pubsub
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[NotStarted-0]
_ = x[Publishing-1]
_ = x[Done-2]
}
const _Step_name = "NotStartedPublishingDone"
var _Step_index = [...]uint8{0, 10, 20, 24}
func (i Step) String() string {
if i < 0 || i >= Step(len(_Step_index)-1) {
return "Step(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Step_name[_Step_index[i]:_Step_index[i+1]]
}