[Go] string、int、int64相互转换
import "strconv" //先导入strconv包 // string到int int, err := strconv.Atoi(string) // string到int64 int64, err := strconv.ParseInt(string, 10, 64) // int到string string := strconv.Itoa(int) // int64到string string := strconv.FormatInt(int64,10)