diff options
author | Alex <alex@adnab.me> | 2023-05-17 12:33:45 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2023-05-17 12:33:45 +0000 |
commit | c26a4308b4454e2f36e2824280b9f587a6918fa9 (patch) | |
tree | 3086149203b8cf9f0280c9b8e784eb893b0d7465 /src/format-table/README.md | |
parent | b66f247580dcfb733718949c35240500903a0802 (diff) | |
parent | 217d4299379b70d1b081cb88e208ab5f2d1808a7 (diff) | |
download | garage-c26a4308b4454e2f36e2824280b9f587a6918fa9.tar.gz garage-c26a4308b4454e2f36e2824280b9f587a6918fa9.zip |
Merge pull request 'Split format_table into separate crate and reduce k2v-client dependencies' (#572) from split-format-table into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/572
Diffstat (limited to 'src/format-table/README.md')
-rw-r--r-- | src/format-table/README.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/format-table/README.md b/src/format-table/README.md new file mode 100644 index 00000000..d918bdf4 --- /dev/null +++ b/src/format-table/README.md @@ -0,0 +1,13 @@ +# `format_table` + +Format tables with a stupid API. [Documentation](https://docs.rs/format_table). + +Example: + +```rust +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); +``` |