mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Previously I had manually created a stringer.go file from the output of stringer command, because I had problems running it properly on my environment for various reasons. Taking a fresh look, this is no longer a problem, so I'm opting to actually generate it manually. Adds ScrollFirstItem and ScrollLastItem constants
18 lines
488 B
Go
18 lines
488 B
Go
// Code generated by "stringer -type VerticalAnchor -output stringer_vertical_anchor.go ."; DO NOT EDIT.
|
|
|
|
package peco
|
|
|
|
import "fmt"
|
|
|
|
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 fmt.Sprintf("VerticalAnchor(%d)", i+1)
|
|
}
|
|
return _VerticalAnchor_name[_VerticalAnchor_index[i]:_VerticalAnchor_index[i+1]]
|
|
}
|