forked from BellerophonMobile/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 42
/
nm80211mode_string.go
26 lines (20 loc) · 778 Bytes
/
nm80211mode_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
// Code generated by "stringer -type=Nm80211Mode"; 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[Nm80211ModeUnknown-0]
_ = x[Nm80211ModeAdhoc-1]
_ = x[Nm80211ModeInfra-2]
_ = x[Nm80211ModeAp-3]
}
const _Nm80211Mode_name = "Nm80211ModeUnknownNm80211ModeAdhocNm80211ModeInfraNm80211ModeAp"
var _Nm80211Mode_index = [...]uint8{0, 18, 34, 50, 63}
func (i Nm80211Mode) String() string {
if i >= Nm80211Mode(len(_Nm80211Mode_index)-1) {
return "Nm80211Mode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Nm80211Mode_name[_Nm80211Mode_index[i]:_Nm80211Mode_index[i+1]]
}