gib 0.1.2

A .gitignore bootstrapper for projects that use git
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn write_contents(
    mut writer: impl std::io::Write,
    content: &(&str, &[u8]),
) -> Result<(), Box<dyn std::error::Error>> {
    writeln!(writer, "###############")?;
    writeln!(writer, "#   {}", content.0)?;
    writeln!(writer, "###############")?;
    writeln!(writer, "{}", String::from_utf8_lossy(content.1))?;
    Ok(())
}