Bootstrap

golang中int和string转换

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)

;