forked from Wifx/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmactiveconnectionstate_string.go
27 lines (21 loc) · 1.09 KB
/
nmactiveconnectionstate_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
// Code generated by "stringer -type=NmActiveConnectionState"; 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[NmActiveConnectionStateUnknown-0]
_ = x[NmActiveConnectionStateActivating-1]
_ = x[NmActiveConnectionStateActivated-2]
_ = x[NmActiveConnectionStateDeactivating-3]
_ = x[NmActiveConnectionStateDeactivated-4]
}
const _NmActiveConnectionState_name = "NmActiveConnectionStateUnknownNmActiveConnectionStateActivatingNmActiveConnectionStateActivatedNmActiveConnectionStateDeactivatingNmActiveConnectionStateDeactivated"
var _NmActiveConnectionState_index = [...]uint8{0, 30, 63, 95, 130, 164}
func (i NmActiveConnectionState) String() string {
if i >= NmActiveConnectionState(len(_NmActiveConnectionState_index)-1) {
return "NmActiveConnectionState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _NmActiveConnectionState_name[_NmActiveConnectionState_index[i]:_NmActiveConnectionState_index[i+1]]
}