package utils import "strconv" // StrToInt string转int func StrToInt(str string) int { i, _ := strconv.Atoi(str) return i }