Skip to main content

print

Function print 

Source
pub fn print(msg: &str, quiet_mode: bool)
Expand description

Print a message to the console if not in quiet mode.

§Arguments

  • msg - The message to print
  • quiet_mode - If true, suppress printing the message

§Example

use kget::print;

print("Starting download...", false); // Prints to stdout
print("Starting download...", true);  // Suppressed