✏️ 修复 github repo 搜索中文的问题

This commit is contained in:
Yiwen-Chan
2021-04-01 13:56:05 +08:00
parent f534b52074
commit 14d07bf963
2 changed files with 9 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ import (
// Str2Int string --> int64
func Str2Int(str string) int64 {
val, _ := strconv.ParseInt(str, 10, 64)
return val
val, _ := strconv.Atoi(str)
return int64(val)
}
// Int2Str int64 --> string