mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge 0a0620b870
into 17d3097e06
This commit is contained in:
commit
6a803d5a4c
|
@ -91,6 +91,10 @@ func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool,
|
|||
continue
|
||||
}
|
||||
if jtag := tt.Tag.Get("json"); jtag != "" && jtag != "-" {
|
||||
unprintable := tt.Tag.Get("unprintable")
|
||||
if unprintable == "true" {
|
||||
continue
|
||||
}
|
||||
name := strings.Split(jtag, ",")[0]
|
||||
if _, ok := redundantSet[name]; ok {
|
||||
continue
|
||||
|
@ -106,6 +110,10 @@ func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool,
|
|||
}
|
||||
default:
|
||||
name := strings.Split(jsonTag, ",")[0]
|
||||
unprintable := t.Tag.Get("unprintable")
|
||||
if unprintable == "true" {
|
||||
continue
|
||||
}
|
||||
if _, ok := redundantSet[name]; ok {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user