genderGTK 生成GTK
(sKey string, hash int)
| 10 | |
| 11 | // genderGTK 生成GTK |
| 12 | func genderGTK(sKey string, hash int) string { |
| 13 | for _, s := range sKey { |
| 14 | us, _ := strconv.Atoi(fmt.Sprintf("%d", s)) |
| 15 | hash += (hash << 5) + us |
| 16 | } |
| 17 | return fmt.Sprintf("%d", hash&0x7fffffff) |
| 18 | } |
| 19 | |
| 20 | func structToStr(in interface{}) (payload string) { |
| 21 | keys := make([]string, 0, 16) |
no outgoing calls
no test coverage detected
searching dependent graphs…