simpler-input

Crates.iosimpler-input
lib.rssimpler-input
version0.2.0
sourcesrc
created_at2021-03-19 23:09:16.074389
updated_at2021-03-21 16:38:33.391912
descriptionA simpler way of receiving input from a user
homepage
repositoryhttps://github.com/Tarnest/simpler-input
max_upload_size
id371184
size2,500
(Tarnest)

documentation

README

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!");
}
Commit count: 10

cargo fmt