bbgo_origin/pkg/strategy/xfunding/positionstate_string.go

26 lines
742 B
Go
Raw Normal View History

// Code generated by "stringer -type=PositionState"; DO NOT EDIT.
package xfunding
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[PositionNoOp-0]
_ = x[PositionOpening-1]
_ = x[PositionClosing-2]
}
const _PositionState_name = "PositionNoOpPositionOpeningPositionClosing"
var _PositionState_index = [...]uint8{0, 12, 27, 42}
func (i PositionState) String() string {
if i < 0 || i >= PositionState(len(_PositionState_index)-1) {
return "PositionState(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PositionState_name[_PositionState_index[i]:_PositionState_index[i+1]]
}