gtk.go 276 B

1234567891011121314
  1. package yu_tencent
  2. import yu_strconv "gogs.qqck.cn/s/tools/strconv"
  3. // Gtk
  4. //
  5. // @Description: bkn,gtk
  6. func Gtk(s string) string {
  7. j_code := uint32(5381)
  8. for _, j_v := range s {
  9. j_code += j_code<<5 + uint32(j_v)
  10. }
  11. return yu_strconv.FormatUint32(j_code & 2147483647)
  12. }