forked from BellerophonMobile/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 42
/
nmcheckpointcreateflags_string.go
39 lines (33 loc) · 1.3 KB
/
nmcheckpointcreateflags_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
// Code generated by "stringer -type=NmCheckpointCreateFlags"; 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[NmCheckpointCreateFlagsNone-0]
_ = x[NmCheckpointCreateFlagsDestroyAll-1]
_ = x[NmCheckpointCreateFlagsDeleteNewConnections-2]
_ = x[NmCheckpointCreateFlagsDisconnectNewDevices-4]
_ = x[NmCheckpointCreateFlagsAllowOverlapping-8]
}
const (
_NmCheckpointCreateFlags_name_0 = "NmCheckpointCreateFlagsNoneNmCheckpointCreateFlagsDestroyAllNmCheckpointCreateFlagsDeleteNewConnections"
_NmCheckpointCreateFlags_name_1 = "NmCheckpointCreateFlagsDisconnectNewDevices"
_NmCheckpointCreateFlags_name_2 = "NmCheckpointCreateFlagsAllowOverlapping"
)
var (
_NmCheckpointCreateFlags_index_0 = [...]uint8{0, 27, 60, 103}
)
func (i NmCheckpointCreateFlags) String() string {
switch {
case 0 <= i && i <= 2:
return _NmCheckpointCreateFlags_name_0[_NmCheckpointCreateFlags_index_0[i]:_NmCheckpointCreateFlags_index_0[i+1]]
case i == 4:
return _NmCheckpointCreateFlags_name_1
case i == 8:
return _NmCheckpointCreateFlags_name_2
default:
return "NmCheckpointCreateFlags(" + strconv.FormatInt(int64(i), 10) + ")"
}
}