mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 07:15:15 +00:00
19 lines
413 B
Go
19 lines
413 B
Go
package drift
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/jedib0t/go-pretty/v6/table"
|
|
|
|
"github.com/c9s/bbgo/pkg/dynamic"
|
|
"github.com/c9s/bbgo/pkg/style"
|
|
)
|
|
|
|
func (s *Strategy) Print(f io.Writer, pretty bool, withColor ...bool) {
|
|
var tableStyle *table.Style
|
|
if pretty {
|
|
tableStyle = style.NewDefaultTableStyle()
|
|
}
|
|
dynamic.PrintConfig(s, f, tableStyle, len(withColor) > 0 && withColor[0], dynamic.DefaultWhiteList()...)
|
|
}
|