ShowError function for send error message to output.
(text string)
| 41 | |
| 42 | // ShowError function for send error message to output. |
| 43 | func ShowError(text string) error { |
| 44 | return fmt.Errorf("%s%s", colorizeLevel("error"), text) |
| 45 | } |
| 46 | |
| 47 | // CalculateDurationTime func to calculate duration time. |
| 48 | func CalculateDurationTime(startTimer time.Time) string { |
no test coverage detected