questionThing

Crates.ioquestionThing
lib.rsquestionThing
version0.1.4
created_at2025-08-09 11:19:43.857905+00
updated_at2025-08-09 11:22:15.97789+00
descriptionpackage to make input question stuff easier
homepage
repositoryhttps://github.com/5quirre1/question-thing
max_upload_size
id1787846
size3,847
Squirrel (5quirre1)

documentation

README

question-thing

uhh it's really simple actually LMFAO

so what it does is ask the input you give (first param) and if you don't give an input like just pressing enter, it prints out the 2nd param !! really simple but it can be useful i think LAWL


small example:

use questionThing::question;

fn main() {
	let s: String = question("put a name!!", "please put a name");
	if s.trim() != "" {
		println!("hai {}!!!", s.trim());
	} else {
		println!("where name how ?!?!? what");
	}
}
Commit count: 0

cargo fmt