renamed constructor
This commit is contained in:
parent
d8452ae166
commit
a5076cac48
2
table.go
2
table.go
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user