peco.peco/stringer_vertical_anchor.go
Daisuke Maki ce2d7f812a Remove termbox-go from various places
* Events are now abstracted.
* Screen is abstracted.
* Printing is encapsulated in a "Command"
2020-12-22 18:19:58 +09:00

26 lines
738 B
Go

// Code generated by "stringer -type VerticalAnchor -output stringer_vertical_anchor.go ."; DO NOT EDIT.
package peco
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[AnchorTop-1]
_ = x[AnchorBottom-2]
}
const _VerticalAnchor_name = "AnchorTopAnchorBottom"
var _VerticalAnchor_index = [...]uint8{0, 9, 21}
func (i VerticalAnchor) String() string {
i -= 1
if i < 0 || i >= VerticalAnchor(len(_VerticalAnchor_index)-1) {
return "VerticalAnchor(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _VerticalAnchor_name[_VerticalAnchor_index[i]:_VerticalAnchor_index[i+1]]
}