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 }