From e5c11520305848ad5ad54f7e04eb8c9d154a4df3 Mon Sep 17 00:00:00 2001 From: zenix Date: Wed, 17 Aug 2022 13:51:50 +0900 Subject: [PATCH] doc: add comment to strategy config printing func --- pkg/strategy/output.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/strategy/output.go b/pkg/strategy/output.go index b50045a12..6e2c73ac9 100644 --- a/pkg/strategy/output.go +++ b/pkg/strategy/output.go @@ -46,6 +46,11 @@ func DefaultWhiteList() []string { return []string{"Window", "Interval", "Symbol"} } +// @param s: strategy object +// @param f: io.Writer used for writing the config dump +// @param style: pretty print table style. Use DefaultStyle() to get default one. +// @param withColor: whether to print with color +// @param whiteLists: fields to be printed out from embedded struct (1st layer only) func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool, whiteLists ...string) { t := table.NewWriter() var write func(io.Writer, string, ...interface{})