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,