10 Star 31 Fork 5

夏午茶/sago

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
GString.go 270 Bytes
一键复制 编辑 原始数据 按行查看 历史
gjy 提交于 2019-08-27 15:34 +08:00 . 初始化
package utils
import (
"fmt"
"strconv"
)
func ConvStr2Int(str string) int {
if intb, err := strconv.Atoi(str); err != nil {
fmt.Println("ConvStr2Int:error")
panic(err)
} else {
return intb
}
}
func ConvInt2Str(str int) string {
return strconv.Itoa(str)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiawucha365/sago.git
git@gitee.com:xiawucha365/sago.git
xiawucha365
sago
sago
v1.1.0

搜索帮助