csv-zip-maker-rs

CSV and ZIP maker

Documentation

Features

Changes

v0.1.0 (2021/07/02)

Examples

```rust use csvzipmaker::{CsvExcelCustomizer, CsvZipError, CsvZipMaker};

let mut maker = CsvZipMaker::new("test", "summary")?; let mut csvmaker = maker.makecsvmaker("summary1", Some(Box::new(CsvExcelCustomizer)))?; csvmaker.write(&vec!["aaa", "bbb"])?; csvmaker.write(&vec!["ccc", "ddd"])?; maker.addcsv(&mut csvmaker)?; let mut csvmaker = maker.makecsvmaker("summary2", None)?; csvmaker.write(&vec!["111", "222"])?; csvmaker.write(&vec!["333", "444"])?; maker.addcsv(&mut csvmaker)?;

let pathbuf = maker.makezipfile()?; std::fs::copy(pathbuf, "test.zip")?; ```