35 lines
956 B
Go
35 lines
956 B
Go
// Code generated by "stringer -type=MonitorType -output hwmon_MonitorType_generated.go"; DO NOT EDIT.
|
|
|
|
package hwmon
|
|
|
|
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[Unknown-0]
|
|
_ = x[Temp-1]
|
|
_ = x[Fan-2]
|
|
_ = x[Voltage-3]
|
|
_ = x[PWM-4]
|
|
_ = x[Current-5]
|
|
_ = x[Power-6]
|
|
_ = x[Energy-7]
|
|
_ = x[Humidity-8]
|
|
_ = x[Frequency-9]
|
|
_ = x[Alarm-10]
|
|
_ = x[Intrusion-11]
|
|
}
|
|
|
|
const _MonitorType_name = "UnknownTempFanVoltagePWMCurrentPowerEnergyHumidityFrequencyAlarmIntrusion"
|
|
|
|
var _MonitorType_index = [...]uint8{0, 7, 11, 14, 21, 24, 31, 36, 42, 50, 59, 64, 73}
|
|
|
|
func (i MonitorType) String() string {
|
|
if i < 0 || i >= MonitorType(len(_MonitorType_index)-1) {
|
|
return "MonitorType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _MonitorType_name[_MonitorType_index[i]:_MonitorType_index[i+1]]
|
|
}
|