diff options
Diffstat (limited to 'src/wordlist.go')
-rw-r--r-- | src/wordlist.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wordlist.go b/src/wordlist.go index 76df5f4..5841c47 100644 --- a/src/wordlist.go +++ b/src/wordlist.go @@ -24,3 +24,12 @@ func readWordlist(wordlistPath string) ([]string, error) { // return the lines, the line count and no error return lines, nil } + +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 + } + }() +} |