1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-30 13:48:54 +08:00
termdash/widgets/table/content_test.go

20 lines
244 B
Go
Raw Normal View History

2019-03-09 00:44:48 -05:00
package table
2019-03-09 22:59:11 -05:00
func ExampleContent() {
2019-03-09 00:44:48 -05:00
rows := []*Row{
2019-03-09 22:59:11 -05:00
NewHeader(
2019-03-09 00:44:48 -05:00
NewCell("hello"),
NewCell("world"),
),
NewRow(
2019-03-09 22:59:11 -05:00
NewCell("1"),
NewCell("2"),
2019-03-09 00:44:48 -05:00
),
}
2019-03-09 22:59:11 -05:00
_, err := NewContent(Columns(2), rows)
2019-03-09 00:44:48 -05:00
if err != nil {
panic(err)
}
}