fix
liuxiaolong
2019-11-13 70cdc2a3f5cdc456b68366c6dd3f40f03c39f1f8
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
}