From 79244e7df141a416c803b4f7d15819228ec610c5 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 3 Nov 2019 18:07:28 +0100 Subject: verbose --- src/channel.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/channel.go') diff --git a/src/channel.go b/src/channel.go index 11a6257..fbe3190 100644 --- a/src/channel.go +++ b/src/channel.go @@ -4,7 +4,9 @@ import "log" // registerChannels creats some channels, stores them in a channels struct and returns the struct for futher usage func registerChannels() channels { - log.Printf("%s Defining channels", green("[i]")) + if verbose == true { + log.Printf("%s Defining channels", green("[i]")) + } // define the channels wordlistChannel := make(chan string) @@ -18,7 +20,9 @@ func registerChannels() channels { doneChannel: doneChannel, } - log.Printf("%s Done defining channels", boldGreen("[+]")) + if verbose == true { + log.Printf("%s Done defining channels", boldGreen("[+]")) + } return channels } -- cgit 1.4.1