garage/src/format-table
Alex Auvolat 217d429937
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
continuous-integration/drone/pr Build is passing
fix clippy lint in format-table crate
2023-05-17 13:06:37 +02:00
..
Cargo.toml fix clippy lint in format-table crate 2023-05-17 13:06:37 +02:00
lib.rs fix clippy lint in format-table crate 2023-05-17 13:06:37 +02:00
README.md Split format_table into separate crate and reduce k2v-client dependencies 2023-05-17 13:01:37 +02:00

format_table

Format tables with a stupid API. Documentation.

Example:

let mut table = vec!["product\tquantity\tprice".to_string()];
for (p, q, r) in [("tomato", 12, 15), ("potato", 10, 20), ("rice", 5, 12)] {
	table.push(format!("{}\t{}\t{}", p, q, r));
}
format_table::format_table(table);