summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra/ptmstatus_string.go
blob: b6ce519c9ba4288b3d1a17e36c0567a046fcd640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -type=ptmStatus"; DO NOT EDIT.

package zebra

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[ptmStatusDown-0]
	_ = x[ptmStatusUp-1]
	_ = x[ptmStatusUnknown-2]
}

const _ptmStatus_name = "ptmStatusDownptmStatusUpptmStatusUnknown"

var _ptmStatus_index = [...]uint8{0, 13, 24, 40}

func (i ptmStatus) String() string {
	if i >= ptmStatus(len(_ptmStatus_index)-1) {
		return "ptmStatus(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _ptmStatus_name[_ptmStatus_index[i]:_ptmStatus_index[i+1]]
}