about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-02 21:14:40 +0100
committerEmile <hanemile@protonmail.com>2019-11-02 21:14:40 +0100
commitcf44aa5f2d8da5ccc32c0a88ee262b77a3b54be5 (patch)
tree9f39edd4ef06a34d1e3c0ae884138645f060f687 /src
parentbaeb1bdf40905854460848536866d2054a746dae (diff)
comment + logging
Diffstat (limited to 'src')
-rw-r--r--src/wordlist.go6
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("[+]"))
 }