lineup 1.0.0

read/write collection of formatted UTF-8 string items
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod config;

use lineup::{read, write};
use std::io::Read;

fn main() -> Result<(), std::io::Error> {
    let cfg = config::Config::new();

    let mut istream = cfg.istream();
    let mut buf = "".to_string();
    istream.read_to_string(&mut buf)?;
    let item_reader = read(buf.as_str(), cfg.in_fmt().clone());
    write(item_reader, cfg.ostream(), cfg.out_format())?;
    Ok(())
}