From b5ff2cda2af5e0af0034b3b729aa50b9201327dd Mon Sep 17 00:00:00 2001 From: Abdullah Farid Date: Thu, 25 Jan 2024 19:50:44 +0000 Subject: [PATCH] Colourise exit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index cb0bab6..1c018c8 100644 --- a/main.go +++ b/main.go @@ -211,7 +211,7 @@ func main() { signal.Notify(c, os.Interrupt, syscall.SIGTERM) go func() { <-c - fmt.Println("\nAttempted to send", reqCount, "requests in", time.Since(start)) // print when control+c is pressed + fmt.Println(colourise(blue, "\nAttempted to send"), reqCount, colourise(blue, "requests in"), time.Since(start)) // print when control+c is pressed os.Exit(0) }()