mirror of
https://github.com/blacktop/ipsw.git
synced 2026-06-07 12:27:36 +00:00
29 lines
834 B
Go
29 lines
834 B
Go
// Code generated by "stringer -type=Orientation -output springboard_string.go"; DO NOT EDIT.
|
|
|
|
package springboard
|
|
|
|
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[Unknown-0]
|
|
_ = x[Portrait-1]
|
|
_ = x[PortraitUpsideDown-2]
|
|
_ = x[Landscape-3]
|
|
_ = x[LandscapeHomeToLeft-4]
|
|
}
|
|
|
|
const _Orientation_name = "UnknownPortraitPortraitUpsideDownLandscapeLandscapeHomeToLeft"
|
|
|
|
var _Orientation_index = [...]uint8{0, 7, 15, 33, 42, 61}
|
|
|
|
func (i Orientation) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_Orientation_index)-1 {
|
|
return "Orientation(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Orientation_name[_Orientation_index[idx]:_Orientation_index[idx+1]]
|
|
}
|