| | |
| | | // Getdbpersonmsg("") |
| | | //} |
| | | |
| | | func Getdbpersonmsg(teststring string, IsCompare bool) ([]protomsg.Baseinfo) { |
| | | func Getdbpersonmsg(teststring string, IsCompare bool) ([]byte) { |
| | | |
| | | var binfos protomsg.Binfos |
| | | |
| | | if !IsCompare { |
| | | return nil |
| | |
| | | |
| | | firsttime := time.Now() |
| | | Rscore := Cmap.Walk(Printest, teststring) |
| | | |
| | | binfos.Infos = append(binfos.Infos, Rscore...) |
| | | binfosbytes, err := binfos.Marshal() |
| | | if err != nil { |
| | | fmt.Println(err) |
| | | return nil |
| | | } |
| | | fmt.Println(time.Since(firsttime)) |
| | | return Rscore |
| | | return binfobytes |
| | | } |
| | | |
| | | func Printest(ci, co string ) (float32){ |