about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/printer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/printer.go b/src/printer.go
index bb9ea63..83268bc 100644
--- a/src/printer.go
+++ b/src/printer.go
@@ -5,11 +5,12 @@ import (
 	"log"
 )
 
-func printResponses(printChannel chan Response) {
+// printResponse reads a response from the printChannel, formats it and prints it
+func printResponses(channels channels) {
 	var i int
 	for {
 		// read a response from the printChannel for further usage
-		response := <-printChannel
+		response := <-channels.printChannel
 
 		// define a postfix: a string attached to the end of all printed
 		// string set in the section filtering the status code cases