From 91012b685559006c517c45fb14239cb078304371 Mon Sep 17 00:00:00 2001 From: semihbkgr Date: Sat, 19 Aug 2023 02:31:03 +0300 Subject: [PATCH] print empty string instead of nil itself --- pkg/table/row.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/table/row.go b/pkg/table/row.go index 9e62a42..543bca2 100644 --- a/pkg/table/row.go +++ b/pkg/table/row.go @@ -99,6 +99,9 @@ func renderColumn(value any) string { dur := time.Since(value) return duration.HumanDuration(dur) default: + if value == nil { + return "" + } return fmt.Sprint(value) } }