ableos_userland/programs/table_view/src/main.rs

20 lines
369 B
Rust

use std::collections::HashMap;
use table::{Row, Table};
fn main() {
let mut tbl = Table {
table: HashMap::new(),
};
tbl.table.insert(
"Example".to_string(),
Row(
// "header".to_string(),
vec!["hi".to_string(), "hey whats up there".to_string()],
19,
),
);
println!("{}", tbl);
}