-
Notifications
You must be signed in to change notification settings - Fork 3
/
string.go
72 lines (63 loc) · 1.94 KB
/
string.go
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by "stringer -type=FloodingScope,LSType -output=string.go"; DO NOT EDIT.
package ospf3
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[LinkLocalScoping-0]
_ = x[AreaScoping-1]
_ = x[ASScoping-2]
_ = x[reservedScoping-3]
}
const _FloodingScope_name = "LinkLocalScopingAreaScopingASScopingreservedScoping"
var _FloodingScope_index = [...]uint8{0, 16, 27, 36, 51}
func (i FloodingScope) String() string {
if i >= FloodingScope(len(_FloodingScope_index)-1) {
return "FloodingScope(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _FloodingScope_name[_FloodingScope_index[i]:_FloodingScope_index[i+1]]
}
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[RouterLSA-8193]
_ = x[NetworkLSA-8194]
_ = x[InterAreaPrefixLSA-8195]
_ = x[InterAreaRouterLSA-8196]
_ = x[ASExternalLSA-16389]
_ = x[deprecatedLSA-8198]
_ = x[NSSALSA-8199]
_ = x[LinkLSA-8]
_ = x[IntraAreaPrefixLSA-8201]
}
const (
_LSType_name_0 = "LinkLSA"
_LSType_name_1 = "RouterLSANetworkLSAInterAreaPrefixLSAInterAreaRouterLSA"
_LSType_name_2 = "deprecatedLSANSSALSA"
_LSType_name_3 = "IntraAreaPrefixLSA"
_LSType_name_4 = "ASExternalLSA"
)
var (
_LSType_index_1 = [...]uint8{0, 9, 19, 37, 55}
_LSType_index_2 = [...]uint8{0, 13, 20}
)
func (i LSType) String() string {
switch {
case i == 8:
return _LSType_name_0
case 8193 <= i && i <= 8196:
i -= 8193
return _LSType_name_1[_LSType_index_1[i]:_LSType_index_1[i+1]]
case 8198 <= i && i <= 8199:
i -= 8198
return _LSType_name_2[_LSType_index_2[i]:_LSType_index_2[i+1]]
case i == 8201:
return _LSType_name_3
case i == 16389:
return _LSType_name_4
default:
return "LSType(" + strconv.FormatInt(int64(i), 10) + ")"
}
}