This commit is contained in:
richboo111
2022-10-08 13:51:54 +08:00
7 changed files with 66 additions and 10 deletions

View File

@@ -565,6 +565,10 @@ func Str2Int(s string) (i int) {
return int(Str2Int64WithDefault(s, 0))
}
func Str2Int16(s string) (i int16) {
return int16(Str2Int64WithDefault(s, 0))
}
//func String2Int64Slice(s string) []int64 {
// res := make([]int64, 0)
// if len(s) == 0 {