Skip to content
File

Blob: overlay/direction_string.go

go25 lines
1// Code generated by "stringer -type=direction -linecomment"; DO NOT EDIT.
2 
3package overlay
4 
5import "strconv"
6 
7func _() {
8 // An "invalid array index" compiler error signifies that the constant values have changed.
9 // Re-run the stringer command to generate them again.
10 var x [1]struct{}
11 _ = x[directionIncoming-0]
12 _ = x[directionOutgoing-1]
13}
14 
15const _direction_name = "IncomingOutgoing"
16 
17var _direction_index = [...]uint8{0, 8, 16}
18 
19func (i direction) String() string {
20 if i < 0 || i >= direction(len(_direction_index)-1) {
21 return "direction(" + strconv.FormatInt(int64(i), 10) + ")"
22 }
23 return _direction_name[_direction_index[i]:_direction_index[i+1]]
24}