package main import ( "log" ) func main() { // read command line arguments, create channels... registerFlags() channelsStruct := registerChannels() // read the wordlist from a file wordlist, err := readWordlist(wordlist) if err != nil { log.Println(err) } // 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(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(channelsStruct) }