sunty
2019-10-30 a564ed60bc1a6824bcfa504432e2b6bfb0992d4a
extend/esutil/EsClient.go
@@ -303,3 +303,18 @@
   }
   return sources, nil
}
func HttpGet(str string) ([]byte){
   resp, err :=   http.Get(str)
   if err != nil {
      // handle error
   }
   defer resp.Body.Close()
   body, err := ioutil.ReadAll(resp.Body)
   if err != nil {
      // handle error
   }
   return body
}