File: stringer_vertical_anchor.go

package info (click to toggle)
peco 0.5.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 548 kB
  • sloc: makefile: 95
file content (17 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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]]
}