Golang类型转换

Go语言 int 转 string 有两种方式 

import strconv
str := strconv.Itoa(i)
str := fmt.Sprintf("%d", i)


你可能感兴趣的:(Golang类型转换)