generated from OBJNULL/Dockerized-Rust
Created printer for better formatting
This commit is contained in:
parent
6fb06f92be
commit
d4313f421a
1 changed files with 11 additions and 0 deletions
11
project/src/printer.rs
Normal file
11
project/src/printer.rs
Normal file
|
@ -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))
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue