-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathstring.go
More file actions
26 lines (20 loc) · 703 Bytes
/
Copy pathstring.go
File metadata and controls
26 lines (20 loc) · 703 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=Preference -output=string.go"; DO NOT EDIT.
package ndp
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[Medium-0]
_ = x[High-1]
_ = x[prfReserved-2]
_ = x[Low-3]
}
const _Preference_name = "MediumHighprfReservedLow"
var _Preference_index = [...]uint8{0, 6, 10, 21, 24}
func (i Preference) String() string {
if i < 0 || i >= Preference(len(_Preference_index)-1) {
return "Preference(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Preference_name[_Preference_index[i]:_Preference_index[i+1]]
}