From cf44aa5f2d8da5ccc32c0a88ee262b77a3b54be5 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 2 Nov 2019 21:14:40 +0100 Subject: comment + logging --- src/wordlist.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/wordlist.go b/src/wordlist.go index 9ad5e58..8e9dbca 100644 --- a/src/wordlist.go +++ b/src/wordlist.go @@ -36,10 +36,14 @@ func readWordlist(wordlistPath string) ([]string, error) { return lines, nil } -func writeWordlistToChannel(wordlistChannel chan string, wordlist []string) { +// writeWordlistToChannel writes the given wordlist (wordlist) into the given channel (wordlistChannel) +func writeWordlistToChannel(channels channels, wordlist []string) { + log.Printf("%s Starting inserting the given wordlist into the channel", green("[i]")) + // write all the words from the wordlist into the wordlistChannel for _, line := range wordlist { wordlistChannel <- line } + log.Printf("%s Done inserting the wordlist elements into the wordlist channel", green("[+]")) } -- cgit 1.4.1