From 6c408811f1dc2a56dcaba281060b870592c410c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Constantin-G=C3=B3mez?= <alex.constantin-gomez19@imperial.ac.uk> Date: Sun, 9 Feb 2020 01:08:15 +0000 Subject: [PATCH] Delete json_helpers.go --- json_helpers.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 json_helpers.go diff --git a/json_helpers.go b/json_helpers.go deleted file mode 100644 index b983a16..0000000 --- a/json_helpers.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "io/ioutil" - "log" - "net/http" -) - -func readJsonFromRequest(r *http.Request) []byte { - data, err := ioutil.ReadAll(r.Body) - if err != nil { - log.Println("could not read json from body") - } - return data -} -- GitLab