From 0ae1cb8e0de85d50655d74cf27e45205bf62e3a4 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Wed, 2 Nov 2022 13:30:27 +0300 Subject: [PATCH] rename method --- jsonUtils/jsonUtils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonUtils/jsonUtils.go b/jsonUtils/jsonUtils.go index 4f0059e..77b7b0f 100644 --- a/jsonUtils/jsonUtils.go +++ b/jsonUtils/jsonUtils.go @@ -12,7 +12,7 @@ func ConvertToJSON(g interface{}) []byte { return g_json } -func ConvertFromJSON(body io.ReadCloser, inter interface{}) { +func ConvertResponseFromJSON(body io.ReadCloser, inter interface{}) { json_err := json.NewDecoder(body).Decode(&inter) _ = json_err //TODO work with errors }