peco.peco/stringer_vertical_anchor.go
Daisuke Maki 972ecec7a2 Actually generate the stringer files
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
2017-12-27 07:26:18 +09:00

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]]
}