From d0fe6d09b987562752be6b6148c5cba824d00ed3 Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期二, 25 六月 2019 11:50:41 +0800 Subject: [PATCH] return []interface{} --- dbpersoninfo.go | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dbpersoninfo.go b/dbpersoninfo.go index 047c263..465892d 100644 --- a/dbpersoninfo.go +++ b/dbpersoninfo.go @@ -53,8 +53,7 @@ // Getdbpersonmsg("") //} -func Getdbpersonmsg(teststring string) { - Init() +func Getdbpersonmsg(teststring string) ([]interface{}) { if teststring == "" { testcache, _:= esutil.DbPersoninfos(0,1) @@ -67,8 +66,8 @@ firsttime := time.Now() Rscore := Cmap.Walk(Printest, teststring) - fmt.Println(Rscore) fmt.Println(time.Since(firsttime)) + return Rscore } func Printest(ci, co string ) (float32){ -- Gitblit v1.8.0