input-lib 0.1.0

A basic library for reading input with prompts and parsing.
Documentation
1
2
3
4
5
6
7
8
9
use std::error::Error;
use input_lib::input;

fn main() -> Result<(), Box<dyn Error>> {
    let name: String = input!("Enter your name: ")?;
    println!("Hello, {}!", name);

    Ok(())
}