28 lines
755 B
Go
28 lines
755 B
Go
// Code generated by "stringer -type Rotation -trimprefix Rotation"; DO NOT EDIT.
|
|
|
|
package replay
|
|
|
|
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[RotationRight-1]
|
|
_ = x[RotationLeft-2]
|
|
_ = x[RotationStraightRight-3]
|
|
_ = x[RotationStraightLeft-4]
|
|
}
|
|
|
|
const _Rotation_name = "RightLeftStraightRightStraightLeft"
|
|
|
|
var _Rotation_index = [...]uint8{0, 5, 9, 22, 34}
|
|
|
|
func (i Rotation) String() string {
|
|
idx := int(i) - 1
|
|
if i < 1 || idx >= len(_Rotation_index)-1 {
|
|
return "Rotation(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Rotation_name[_Rotation_index[idx]:_Rotation_index[idx+1]]
|
|
}
|