new es client

This commit is contained in:
Jay 2018-10-10 01:15:21 +08:00
parent 57d885dba9
commit 7251c43a57

View File

@ -47,6 +47,11 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
err = es.NewClient()
if err != nil {
log.Fatal(err)
}
// connect to database // connect to database
db, err := model.NewDB() db, err := model.NewDB()
if err != nil { if err != nil {