mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
19 lines
397 B
Markdown
19 lines
397 B
Markdown
|
# ascii-table
|
||
|
|
||
|
Print ASCII tables to the terminal.
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```
|
||
|
use ascii_table::{TableConfig, print_table};
|
||
|
|
||
|
let config = TableConfig::default();
|
||
|
let data = vec![&[1, 2, 3], &[4, 5, 6], &[7, 8, 9]];
|
||
|
print_table(data, &config);
|
||
|
// ┌───┬───┬───┐
|
||
|
// │ 1 │ 2 │ 3 │
|
||
|
// │ 4 │ 5 │ 6 │
|
||
|
// │ 7 │ 8 │ 9 │
|
||
|
// └───┴───┴───┘
|
||
|
```
|