Skip to content

Commit

Permalink
Colourise exit
Browse files Browse the repository at this point in the history
  • Loading branch information
zer-far committed Jan 25, 2024
1 parent 50dfd54 commit b5ff2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}()

Expand Down

0 comments on commit b5ff2cd

Please sign in to comment.