tutus-chain/pkg/network/bqueue/operationmode_string.go

26 lines
689 B
Go

// Code generated by "stringer -type=OperationMode"; DO NOT EDIT.
package bqueue
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[NonBlocking-0]
_ = x[Blocking-1]
}
const _OperationMode_name = "NonBlockingBlocking"
var _OperationMode_index = [...]uint8{0, 11, 19}
func (i OperationMode) String() string {
idx := int(i) - 0
if i < 0 || idx >= len(_OperationMode_index)-1 {
return "OperationMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _OperationMode_name[_OperationMode_index[idx]:_OperationMode_index[idx+1]]
}