-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstring.go
More file actions
26 lines (20 loc) · 697 Bytes
/
string.go
File metadata and controls
26 lines (20 loc) · 697 Bytes
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
26
// Code generated by "stringer -type=PortType -output=string.go"; DO NOT EDIT.
package devlink
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[Unknown-0]
_ = x[Auto-1]
_ = x[Ethernet-2]
_ = x[InfiniBand-3]
}
const _PortType_name = "UnknownAutoEthernetInfiniBand"
var _PortType_index = [...]uint8{0, 7, 11, 19, 29}
func (i PortType) String() string {
if i < 0 || i >= PortType(len(_PortType_index)-1) {
return "PortType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PortType_name[_PortType_index[i]:_PortType_index[i+1]]
}