diff options
Diffstat (limited to 'src/wordlist.go')
-rw-r--r-- | src/wordlist.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wordlist.go b/src/wordlist.go index 5841c47..adfda9a 100644 --- a/src/wordlist.go +++ b/src/wordlist.go @@ -2,6 +2,7 @@ package main import ( "bufio" + "log" "os" ) @@ -27,9 +28,8 @@ func readWordlist(wordlistPath string) ([]string, error) { func writeWordlistToChannel(wordlistChannel chan string, wordlist []string) { // write all the words from the wordlist into the wordlistChannel - go func() { - for _, line := range wordlist { - wordlistChannel <- line - } - }() + for _, line := range wordlist { + wordlistChannel <- line + } + log.Printf("%s Done inserting the wordlist elements into the wordlist channel", green("[+]")) } |