/warning

The Error Library :bug:

Primary LanguageGoMIT LicenseMIT

warning - The error handling library 🐛

Default Validation

 out, err := exec.Command("disfhdisfias").Output();
    if err != nil{
      fmt.Println("INVALID COMMAND");
    }else{
      fmt.Println("Command successfully executed");
    }
	output := string(out[:]);
	fmt.Println(output);

benchmark:

Using PRINT_DEFAULT_ERRORS function

 out, err := exec.Command("disfhdisfias").Output();
    warning.PRINT_DEFAULT_ERRORS(err,"INVALID COMMAND");
	output := string(out[:]);
	fmt.Println(output);

benchmark: