func getBody(resp *http.Response) []byte { response, err := ioutil.ReadAll(resp.Body) logger.ProcessError("Can't get a body of HTTP response", err) return response }
func sendRequest(data string) *http.Response { resp, err := http.Get(data) logger.ProcessError("Can't execute HTTP request", err) return resp }