Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 862bf92

Browse files
avoid spoilers
1 parent 92f4a74 commit 862bf92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,10 @@ func fillTable(titles reflect.Type, values reflect.Value) {
324324

325325
if value.Kind() == reflect.String {
326326
//if velue is a string
327-
t = append(t, title.Name)
328-
v = append(v, []string{value.String()})
327+
if !strings.Contains(strings.ToLower(title.Name), "winner") {
328+
t = append(t, title.Name)
329+
v = append(v, []string{value.String()})
330+
}
329331
} else if value.Kind() == reflect.Slice {
330332
//if value is a slice of strings
331333
lines := make([]string, value.Len())

0 commit comments

Comments
 (0)