forked from BellerophonMobile/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathnmconnectivity_string.go
More file actions
27 lines (21 loc) · 893 Bytes
/
nmconnectivity_string.go
File metadata and controls
27 lines (21 loc) · 893 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
27
// Code generated by "stringer -type=NmConnectivity"; 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[NmConnectivityUnknown-0]
_ = x[NmConnectivityNone-1]
_ = x[NmConnectivityPortal-2]
_ = x[NmConnectivityLimited-3]
_ = x[NmConnectivityFull-4]
}
const _NmConnectivity_name = "NmConnectivityUnknownNmConnectivityNoneNmConnectivityPortalNmConnectivityLimitedNmConnectivityFull"
var _NmConnectivity_index = [...]uint8{0, 21, 39, 59, 80, 98}
func (i NmConnectivity) String() string {
if i >= NmConnectivity(len(_NmConnectivity_index)-1) {
return "NmConnectivity(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _NmConnectivity_name[_NmConnectivity_index[i]:_NmConnectivity_index[i+1]]
}