diff --git a/project/src/printer.rs b/project/src/printer.rs new file mode 100644 index 0000000..9ff88cf --- /dev/null +++ b/project/src/printer.rs @@ -0,0 +1,11 @@ +// Libraries +use colored::{self, Colorize, CustomColor}; + +// Functions +pub fn print_generic(emoji: &str, message: &str) { + println!( + "[{:^3}] {}", + emoji, + message.custom_color(CustomColor::new(200, 200, 200)) + ); +}