MCPcopy Create free account
hub / github.com/devashishdxt/cli-table / main

Function main

cli-table/examples/csv.rs:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4use csv::ReaderBuilder;
5
6fn main() -> Result<()> {
7 let data = "\
8city,country,pop
9Boston,United States,4628910
10Concord,United States,42695
11";
12
13 let mut reader = ReaderBuilder::new().from_reader(data.as_bytes());
14 let table = TableStruct::try_from(&mut reader).unwrap();
15
16 print_stdout(table)
17}

Callers

nothing calls this directly

Calls 1

print_stdoutFunction · 0.85

Tested by

no test coverage detected