diff options
author | Emile <hanemile@protonmail.com> | 2019-11-01 21:33:59 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-01 21:33:59 +0100 |
commit | b991d9d8c791460a0e5ab4d28502f95efa3d866c (patch) | |
tree | e77242b4cc3b1b3198b016788e0e8c7daa43c74d /src/wordlist.go | |
parent | 67b9787c3f4103100a626e6e8a71551482c7ad44 (diff) |
broke stuff, fixed stuff...
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("[+]")) } |