Ai
1 Star 0 Fork 0

nicejia/hi-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
numberToString.go 720 Bytes
一键复制 编辑 原始数据 按行查看 历史
ljcode 提交于 2019-12-18 17:57 +08:00 . 第二次提交
//数字转字符串
package conver
import (
"strconv"
)
//IntToString int类型转string
func IntToString(source int) (target string) {
target = strconv.Itoa(source)
return
}
//Int8ToString int8类型转string
func Int8ToString(source int8) (target string) {
target = strconv.Itoa(int(source))
return
}
//Int8ToString int16类型转string
func Int16ToString(source int16) (target string) {
target = strconv.Itoa(int(source))
return
}
//Int32ToString int32类型转string
func Int32ToString(source int32) (target string) {
target = strconv.Itoa(int(source))
return
}
//Int64ToString int64类型转string
func Int64ToString(source int64) (target string) {
target = strconv.FormatInt(source, 10)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/nicejia/hi-go.git
git@gitee.com:nicejia/hi-go.git
nicejia
hi-go
hi-go
245c94f116aa

搜索帮助