From a5076cac4850d80586567452ee30387aaf899c5b Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Thu, 25 Aug 2022 16:05:14 +0200 Subject: [PATCH] renamed constructor --- table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table.go b/table.go index fa9326e..f08d86d 100644 --- a/table.go +++ b/table.go @@ -22,7 +22,7 @@ type Table struct { data [][][]string } -func NewDynamicTable(head ...string) *Table { +func NewTable(head ...string) *Table { thead := slices.Map(head, func(s string) []string { return strings.Split(s, "\n") }) return &Table{ head: thead,