mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
26 lines
742 B
Go
26 lines
742 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[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]]
|
||
|
}
|