diff options
author | Emile <hanemile@protonmail.com> | 2019-11-02 21:14:40 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-02 21:14:40 +0100 |
commit | cf44aa5f2d8da5ccc32c0a88ee262b77a3b54be5 (patch) | |
tree | 9f39edd4ef06a34d1e3c0ae884138645f060f687 | |
parent | baeb1bdf40905854460848536866d2054a746dae (diff) |
comment + logging
-rw-r--r-- | src/wordlist.go | 6 |
1 files changed, 5 insertions, 1 deletions
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("[+]")) } |