diff options
author | Emile <hanemile@protonmail.com> | 2019-11-03 18:07:28 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-03 18:07:28 +0100 |
commit | 79244e7df141a416c803b4f7d15819228ec610c5 (patch) | |
tree | 077a66739155175db83c6fd0665800a3a9cee54a /src/channel.go | |
parent | d93cbbed938d318abdee405ef29f77a5fe9c3f4a (diff) |
verbose
Diffstat (limited to 'src/channel.go')
-rw-r--r-- | src/channel.go | 8 |
1 files changed, 6 insertions, 2 deletions
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 } |