-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlmtemptype_string.go
39 lines (33 loc) · 930 Bytes
/
lmtemptype_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=LmTempType"; DO NOT EDIT.
package lmsensors
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[Disabled-0]
_ = x[CPUDiode-1]
_ = x[Transistor-2]
_ = x[ThermalDiode-3]
_ = x[Thermistor-4]
_ = x[AMDSI-5]
_ = x[IntelPECI-6]
_ = x[Unknown-2147483647]
}
const (
_LmTempType_name_0 = "DisabledCPUDiodeTransistorThermalDiodeThermistorAMDSIIntelPECI"
_LmTempType_name_1 = "Unknown"
)
var (
_LmTempType_index_0 = [...]uint8{0, 8, 16, 26, 38, 48, 53, 62}
)
func (i LmTempType) String() string {
switch {
case 0 <= i && i <= 6:
return _LmTempType_name_0[_LmTempType_index_0[i]:_LmTempType_index_0[i+1]]
case i == 2147483647:
return _LmTempType_name_1
default:
return "LmTempType(" + strconv.FormatInt(int64(i), 10) + ")"
}
}