format_table

Crates.ioformat_table
lib.rsformat_table
version0.1.1
sourcesrc
created_at2023-05-17 11:02:02.413795
updated_at2023-05-17 11:06:55.370221
descriptionFormat tables with a stupid API
homepage
repositoryhttps://git.deuxfleurs.fr/Deuxfleurs/garage
max_upload_size
id866859
size2,884
Alex Auvolat (Alexis211)

documentation

README

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);
Commit count: 0

cargo fmt