about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-02 22:12:06 +0100
committerEmile <hanemile@protonmail.com>2019-11-02 22:12:06 +0100
commitab34abaaee5580048fff2212255c4615fcc9d2ae (patch)
tree98b90216fa57198f18f009e4680df3016c709426
parent3bd9baca5b0b97ec309aa5cf5dc0c88e0841661a (diff)
better naming
-rw-r--r--src/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.go b/src/main.go
index bfb839c..0a6dfca 100644
--- a/src/main.go
+++ b/src/main.go
@@ -7,7 +7,7 @@ import (
 func main() {
 	// read command line arguments, create channels...
 	registerFlags()
-	channels = registerChannels()
+	channelsStruct := registerChannels()
 
 	// read the wordlist from a file
 	wordlist, err := readWordlist(wordlist)
@@ -18,12 +18,12 @@ func main() {
 	// write into the wordlist channel and read out of the print channel
 	// these functions wait for input into the channels and process the given
 	// data
-	go writeWordlistToChannel(channels, wordlist)
-	go printResponses(channels)
+	go writeWordlistToChannel(channelsStruct, wordlist)
+	go printResponses(channelsStruct)
 
 	// start the http server exposing the data found
 	go httpStartServer()
 
 	// make the http requests by fetching the data from the channels
-	httpHandler(wordlistChannel, printChannel, doneChannel)
+	httpHandler(channelsStruct)
 }