2 unstable releases
0.2.0 | Mar 21, 2021 |
---|---|
0.1.0 | Mar 19, 2021 |
#50 in #read-line
3KB
A simpler way to receive input from a user.
Usage
simpler-input = "0.2.0"
There is only one function, so it's easier to implement and remember.
use simpler-input::input;
fn main() {
// if you decide to get user input with no text printed before, you must pass None as an arg
let a = input(None);
// if you want text printed directly before your program asks for input, you can pass a string
let b = input("Hello there!");
}