aboutsummaryrefslogtreecommitdiffstats
path: root/device/devicestate_string.go
blob: e8f16b0514eb9bc12a9d9a444fdef45cdc4d797a (plain) (blame)
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 deviceState -trimprefix=deviceState"; DO NOT EDIT.

package device

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[deviceStateNew-0]
	_ = x[deviceStateDown-1]
	_ = x[deviceStateUp-2]
	_ = x[deviceStateClosed-3]
}

const _deviceState_name = "NewDownUpClosed"

var _deviceState_index = [...]uint8{0, 3, 7, 9, 15}

func (i deviceState) String() string {
	if i >= deviceState(len(_deviceState_index)-1) {
		return "deviceState(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _deviceState_name[_deviceState_index[i]:_deviceState_index[i+1]]
}