#input #console #input-utils

input-utils

Small package with console input utils

2 releases

0.1.1 Aug 18, 2023
0.1.0 Aug 17, 2023

#267 in #console

Custom license

4KB

input-utils

Small package with console input utils.

Example

use input_utils;

fn main() {
  let age: u32 = input_utils::read_input("Enter your age: ", "Invalid input.\n");
  println!("Your age is {}", age);
}

No runtime deps