renamed constructor

This commit is contained in:
Timon Ringwald 2022-08-25 16:05:14 +02:00
parent d8452ae166
commit a5076cac48

View File

@ -22,7 +22,7 @@ type Table struct {
data [][][]string 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") }) thead := slices.Map(head, func(s string) []string { return strings.Split(s, "\n") })
return &Table{ return &Table{
head: thead, head: thead,