mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 09:15:15 +00:00
27 lines
787 B
Go
27 lines
787 B
Go
// 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[PositionClosed-0]
|
|
_ = x[PositionOpening-1]
|
|
_ = x[PositionReady-2]
|
|
_ = x[PositionClosing-3]
|
|
}
|
|
|
|
const _PositionState_name = "PositionClosedPositionOpeningPositionReadyPositionClosing"
|
|
|
|
var _PositionState_index = [...]uint8{0, 14, 29, 42, 57}
|
|
|
|
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]]
|
|
}
|