27 lines
709 B
Go
27 lines
709 B
Go
// Code generated by "stringer -type jobState -type printerState"; DO NOT EDIT.
|
|
|
|
package ipp
|
|
|
|
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[Idle-3]
|
|
_ = x[Processing-4]
|
|
_ = x[Stopped-5]
|
|
}
|
|
|
|
const _printerState_name = "IdleProcessingStopped"
|
|
|
|
var _printerState_index = [...]uint8{0, 4, 14, 21}
|
|
|
|
func (i printerState) String() string {
|
|
i -= 3
|
|
if i < 0 || i >= printerState(len(_printerState_index)-1) {
|
|
return "printerState(" + strconv.FormatInt(int64(i+3), 10) + ")"
|
|
}
|
|
return _printerState_name[_printerState_index[i]:_printerState_index[i+1]]
|
|
}
|