forked from BellerophonMobile/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 42
/
nmstate_string.go
53 lines (48 loc) · 1.27 KB
/
nmstate_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
// Code generated by "stringer -type=NmState"; DO NOT EDIT.
package gonetworkmanager
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[NmStateUnknown-0]
_ = x[NmStateAsleep-10]
_ = x[NmStateDisconnected-20]
_ = x[NmStateDisconnecting-30]
_ = x[NmStateConnecting-40]
_ = x[NmStateConnectedLocal-50]
_ = x[NmStateConnectedSite-60]
_ = x[NmStateConnectedGlobal-70]
}
const (
_NmState_name_0 = "NmStateUnknown"
_NmState_name_1 = "NmStateAsleep"
_NmState_name_2 = "NmStateDisconnected"
_NmState_name_3 = "NmStateDisconnecting"
_NmState_name_4 = "NmStateConnecting"
_NmState_name_5 = "NmStateConnectedLocal"
_NmState_name_6 = "NmStateConnectedSite"
_NmState_name_7 = "NmStateConnectedGlobal"
)
func (i NmState) String() string {
switch {
case i == 0:
return _NmState_name_0
case i == 10:
return _NmState_name_1
case i == 20:
return _NmState_name_2
case i == 30:
return _NmState_name_3
case i == 40:
return _NmState_name_4
case i == 50:
return _NmState_name_5
case i == 60:
return _NmState_name_6
case i == 70:
return _NmState_name_7
default:
return "NmState(" + strconv.FormatInt(int64(i), 10) + ")"
}
}