forked from maltegrosse/go-modemmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmmconnectionerror_string.go
More file actions
executable file
·27 lines (21 loc) · 1000 Bytes
/
mmconnectionerror_string.go
File metadata and controls
executable file
·27 lines (21 loc) · 1000 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=MMConnectionError -trimprefix=MMConnectionError"; DO NOT EDIT.
package modemmanager
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[MmConnectionErrorUnknown-0]
_ = x[MmConnectionErrorNoCarrier-1]
_ = x[MmConnectionErrorNoDialtone-2]
_ = x[MmConnectionErrorBusy-3]
_ = x[MmConnectionErrorNoAnswer-4]
}
const _MMConnectionError_name = "MmConnectionErrorUnknownMmConnectionErrorNoCarrierMmConnectionErrorNoDialtoneMmConnectionErrorBusyMmConnectionErrorNoAnswer"
var _MMConnectionError_index = [...]uint8{0, 24, 50, 77, 98, 123}
func (i MMConnectionError) String() string {
if i >= MMConnectionError(len(_MMConnectionError_index)-1) {
return "MMConnectionError(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MMConnectionError_name[_MMConnectionError_index[i]:_MMConnectionError_index[i+1]]
}