1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # easyinput
//!
//! Dependency-less library providing an easy abstraction for getting user input
//!
//! # Usage
//!
//! Basic usage
//!
//! ```rust
//! use easyinput::input;
//!
//! fn main() {
//! let user_input = input("What is your name? ");
//! println!("Hello, {}!", user_input);
//! }
//! ```
//!
//! # LICENSE
//!
//! This project is distributed under MIT license.
use ;
/// Abstraction over stdin().read_line() providing
/// easy way of getting input from the user
///
/// # Examples
///
/// ```no_run
/// use easyinput::input;
///
/// let user_input = input("What is your name? ");
/// println!("Hello, {}!", user_input);
/// ```