golang 字串與int型別轉換
一、字串轉int
func Atoi(s string) (int, error)
案例:

執行結果:
sf@SFdeMacBook-Pro ~/Documents/project/src/test go build int_string.go
sf@SFdeMacBook-Pro ~/Documents/project/src/test ./int_string
int, 100
二、int轉字串
func Itoa(i int) string
執行結果:
sf@SFdeMacBook-Pro ~/Documents/project/src/test go build int_string.go
sf@SFdeMacBook-Pro ~/Documents/project/src/test ./int_string
string,100