https://blog.csdn.net/hanyajun0123/article/details/92445437
总结了下golang中字符串和各种int类型之间的相互转换方式:
string转成int:
int, err := strconv.Atoi(string)
1
string转成int64:
int64, err := strconv.ParseInt(string, 10, 64)
1
int转成string:
string := strconv.Itoa(int)
1
int64转成string:
string := strconv.FormatInt(int64,10)