| | |
| | | "sync" |
| | | "encoding/base64" |
| | | |
| | | "encoding/json" |
| | | |
| | | "basic.com/pubsub/cache.git/esutil" |
| | | "basic.com/pubsub/cache.git/shardmap" |
| | | "test/cache/esutil" |
| | | "test/cache/shardmap" |
| | | |
| | | "basic.com/valib/gosdk.git" |
| | | ) |
| | |
| | | fmt.Println() |
| | | } |
| | | |
| | | func Getdbpersonmsg(tableid string, teststring []byte, IsCompare bool) (map[string]float32) { |
| | | func Getdbpersonmsg(tableid string, teststring []byte, IsCompare bool) ([]byte) { |
| | | |
| | | totalmap := make(map[string]float32) |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | fmt.Println() |
| | | fmt.Println() |
| | | |
| | | firsttime := time.Now() |
| | | fmt.Println(time.Since(firsttime)) |
| | | return totalmap |
| | | |
| | | buf, err := json.Marshal(totalmap) |
| | | if err != nil { |
| | | fmt.Println("map to json error!", err) |
| | | return nil |
| | | } |
| | | return buf |
| | | } |
| | | |
| | | func Printest(ci []byte, co string ) (float32){ |