ascii-table/readme.md

19 lines
382 B
Markdown
Raw Normal View History

2019-05-13 20:58:37 +00:00
# ascii-table
Print ASCII tables to the terminal.
## Example
```
2020-04-01 19:18:07 +00:00
use ascii_table::AsciiTable;
2019-05-13 20:58:37 +00:00
2020-04-01 19:18:07 +00:00
let ascii_table = AsciiTable::default();
2019-05-13 20:58:37 +00:00
let data = vec![&[1, 2, 3], &[4, 5, 6], &[7, 8, 9]];
2020-04-01 19:18:07 +00:00
ascii_table.print(data);
2019-05-13 20:58:37 +00:00
// ┌───┬───┬───┐
// │ 1 │ 2 │ 3 │
// │ 4 │ 5 │ 6 │
// │ 7 │ 8 │ 9 │
// └───┴───┴───┘
```