From 6b6b6cda4753c244326cead5fee9fb48eaaaf98c Mon Sep 17 00:00:00 2001
From: Hugo <hnouts@grandlyon.com>
Date: Wed, 22 Apr 2020 17:49:16 +0200
Subject: [PATCH] update main.go readAll response

---
 main.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 22f23e7..d344b8d 100644
--- a/main.go
+++ b/main.go
@@ -28,7 +28,10 @@ func main() {
 			fmt.Println(err)
 		} else {
 			defer response.Body.Close()
-			contents := ioutil.ReadAll(response.Body)
+			contents, err := ioutil.ReadAll(response.Body)
+			if err != nil {
+				fmt.Println(err)
+			}
 			fmt.Printf("%s\n", string(contents))
 		}
 	
-- 
GitLab