mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
* Events are now abstracted. * Screen is abstracted. * Printing is encapsulated in a "Command"
26 lines
738 B
Go
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]]
|
|
}
|